JavaBean « Update « JPA Q&A





1. Merging a JavaBean fires propertyChange    forum.hibernate.org

18:47:57,021 ERROR LazyInitializationException:19 - illegal access to loading collection org.hibernate.LazyInitializationException: illegal access to loading collection at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:341) at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86) at org.hibernate.collection.PersistentBag.listIterator(PersistentBag.java:422) at java.util.AbstractList.equals(AbstractList.java:606) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:267) at eiswind.paris.model.bean.ModelObject.firePropertyChange(ModelObject.java:39) at eiswind.paris.model.Category.setChildren(Category.java:71) at eiswind.paris.model.Category$$BulkBeanByCGLIB$$4853615e.setPropertyValues() at org.hibernate.tuple.PojoEntityTuplizer.setPropertyValuesWithOptimizer(PojoEntityTuplizer.java:212) ...

2. Update two/multuple table with single Java Bean    forum.hibernate.org

Hi, I have a requirement, which I am sure is one of its kind but I hope someone has an answer to that. I have a case where we have multiple identical tables which needs to be associated with single Java Bean. So when I want to create a new record or update the existing record, my call to save or ...