-->
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: Duplicated objects
PostPosted: Tue Feb 22, 2011 4:32 am 
Newbie

Joined: Tue Feb 22, 2011 4:15 am
Posts: 1
Hi, guys!

I'm new in hibernate and have some problems. I'm using spring + hibernate in my project. I load list of some objects, as example groups, but over time i need to load a full list of accounts which belongs to this groups (like "select * from accounts"). There i have a problem: groups which i loaded first time aren't objects, which will loaded by hibernate when i'll call something like account.getGroup(), but they represents the same groups.

How i can merge this objects, or i need something like interceptor to say hibernate that this object already loaded and it must link account to it? Any advices will be helpfull.


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.