Hi forum,
I am in the process of converting an application from Eclipselink to Hibernate and therefore have to use lazy reloading of detached entities first.
enable_lazy_load_no_trans = true should take care of this (although I know it’s a performance issue - which would be ok for now).
But I have the following problem, which is why the feature seems useless:
I have lazy one-to-many relation e.g. List order.items and inverse many-to-one relation Item.order.
For a detached order, when the PersistentBag for order.tems is loaded from the database, each item gets its parent order loaded from the database resulting in new instances of order in each item. All these instances have the same @Id and content.
Any ideas what I am doing wrong or how to work around this issue? (EclipseLink handles this perfectly btw.)
Thanks and regards
Rolf