-->
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.  [ 2 posts ] 
Author Message
 Post subject: Listing all objects currently associated with a Session
PostPosted: Tue Dec 01, 2009 1:03 am 
Newbie

Joined: Sat Oct 17, 2009 1:48 pm
Posts: 9
Hi guys, thanks for your help in advance

I need to be able to list all currently associated objects with a Session. I keep getting NonUniqueObjectExceptions on cascades of DAOS during saves or updates. So, I figured if I implement a SaveOrUpdateEventListener and check all session-associated objects at save/update time for duplicate objects for the same row and purge/reassign them I might prevent the problem from occuring. Please tell me what is the best way to accomplish this task and if this is the best practice.

thanks a lot.


Top
 Profile  
 
 Post subject: Re: Listing all objects currently associated with a Session
PostPosted: Wed Dec 02, 2009 12:11 am 
Newbie

Joined: Sat Oct 17, 2009 1:48 pm
Posts: 9
basicly, is there a better way to avoid duplicate objects representing same rows issue other then debugging every possible logical scenario? thanks


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

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.