| Beginner |
 |
Joined: Thu Sep 01, 2005 10:09 am Posts: 39
|
|
I had this problem a while ago and now its here again. I use Java Beans with standard PropertyChangeSupport as my domain objects. As I have a Rich Client all my associations are fetched EAGER. When I call EntityManage.merge() on a detached object hibernate cascades the merge (which is what I want) to the dependend objects. Thereby it calls a setter of an Collection with an uninitialized Set. The PropertyChangeSupport in the setter tries to compare the old and the new Set. Although we have a running tranaction a LazyInitializationException is thrown. I had a workaround with not comparing the Sets, but thats not satisfying. Any ideas ?
Thx
Thomas
|
|