Beginner |
|
Joined: Thu Jan 29, 2009 1:24 am Posts: 20
|
Hello all,
I'm using Hibernate 3.4.0 through Spring+JPA. I'm seeing some weird behavior with collections that is causing a LazyInitializationException to occur. During an open transaction session I serialize an entity to XML. Objects that contain a PersistentBag with some data in it serialize just fine however objects that contain a PersistentBag that are empty (no data) are throwing the LazyInitializationException even though the PersistentBag is initialized (which is proven as the "initialized" boolean is true before serialization). Anyone have any idea why this would be happening?
Jean-Philippe
|
|