I think the problem here is that the operation is being queued while the uninitialized PersistentList is not connected to a session. I don't see any other cases where a DelayedOperation is queued while the PersistentCollection is detached. I believe Hibernate should attempt to initialize the collection, and since it is not connected to a session, LazyInitializationException should be thrown. This is what happened before HHH-9195 was fixed. Steve Ebersole, It appears that there are no cases where where an PersistentList.Add operation (at a particular index) should be queued for a PersistentList. Can PersistentList.Add be removed? Here is how I would define PersistentList#add(int index, Object value): {{ public void add(int index, Object value) { if ( index < 0 ) { throw new ArrayIndexOutOfBoundsException( "negative index" ); } write(); list.add( index, value ); } }} |