These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Merging Java Beans with Hibernate
PostPosted: Sun Jul 22, 2007 10:12 am 
Beginner
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.