AssertionFailure « Update « JPA Q&A





1. AssertionFailure: collectionwas not processed by flush() ???    forum.hibernate.org

I get this error every now and again.. and I have no clue what it means. Code: ERROR AssertionFailure:45 - an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session) org.hibernate.AssertionFailure: collection [myproject.domain.Category.children] was not processed by flush() at org.hibernate.engine.CollectionEntry.postFlush(CollectionEntry.java:228) at org.hibernate.event.def.AbstractFlushingEventListener.postFlush(AbstractFlushingEventListener.java:356) ...

2. Inner join causing org.hibernate.AssertionFailure: dirty, ..    forum.hibernate.org

Hibernate version:3.0.5 Name and version of the database you are using: Oracle 10.1.0.2 I am not sure the problem is there but it seems that when I am executing the following HQL: public List getDirtyForAccount(final Account a) { return (List) getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { Query query = session.createQuery("select ac from Campaign ac " + "inner ...