1. Hibernate/GORM: collection was not processed by flush() stackoverflow.comI have an integration test in my Grails application that fails when I try to save an entity of type
This raises the following exception
org.hibernate.AssertionFailure: collection ... |
2. Hibernate collection removal after flush stackoverflow.comthe collection data is removed from db after session flush, seems hibernate detected the original collection is replaced, but in our legacy project, we don't want hibernate do the removal, any ... |
3. "collection was processed twice by flush()" forum.hibernate.orgPage 1 of 1 [ 1 post ] Previous topic | Next topic Author Message behrangsa Post subject: "collection was processed twice by flush()" Posted: Sun Feb 05, 2006 7:05 am Newbie Joined: Thu Dec 23, 2004 7:23 am Posts: 11 Location: Melbourne Hi, We're getting this "collection was processed twice ... |
4. Collection not processed by flush - but only sometimes? forum.hibernate.orgAuthor Message aswan Post subject: Collection not processed by flush - but only sometimes? Posted: Sun Apr 09, 2006 10:01 pm Newbie Joined: Tue May 24, 2005 10:40 pm Posts: 8 Location: Sydney, Australia Introduction I had a weird problem with a collection and would like to find out: - why it only happened in one specific use case ... |
5. collection was not processed by flush() forum.hibernate.orgpublic void update(Post post, Integer[] categoryIds) throws DAOException { try { Session session = getSession(); session.update(post); post.getCategories().clear(); for (Integer categoryId : categoryIds) { ... |
6. Getting error: collection was not processed by flush() forum.hibernate.orgI am getting following exception : org.hibernate.AssertionFailure: collection [com.abc.party.Party.postalAddresses] was not processed by flush() at org.hibernate.engine.CollectionEntry.postFlush(CollectionEntry.java:205) [hibernate-3.2.6.ga.jar:3.2.6.ga] at org.hibernate.event.def.AbstractFlushingEventListener.postFlush(AbstractFlushingEventListener.java:333) [hibernate-3.2.6.ga.jar:3.2.6.ga] at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:28) [hibernate-3.2.6.ga.jar:3.2.6.ga] at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) [hibernate-3.2.6.ga.jar:3.2.6.ga] at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338) [hibernate-3.2.6.ga.jar:3.2.6.ga] at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106) [hibernate-3.2.6.ga.jar:3.2.6.ga] at org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:655) [spring-2.5.6.jar:2.5.6] at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:732) [spring-2.5.6.jar :2.5.6] at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:701) [spring-2.5.6.jar:2.5.6] at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:321) [spring-2.5.6.j ar:2.5.6] at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:116) [spring-2.5.6.jar:2.5.6] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) [spring-2.5.6.jar:2.5.6] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) [spring-2.5.6.jar:2.5.6] at $Proxy218.createSourceGroup(Unknown Source) [na:na] at sun.reflect.GeneratedMethodAccessor1459.invoke(Unknown ... |
7. collection [] was not processed by flush() forum.hibernate.orgHi all I am getting following exception when I am trying to flush my hibernate session: java.lang.RuntimeException: org.hibernate.AssertionFailure: collection [mycollection] was not processed by flush() I checked forums and I got an hint that it might be happening due to an immutable collection. The problem that I am facing is on a collection on which I have used @CollectionOfElements annotation. I ... |