-->
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.  [ 3 posts ] 
Author Message
 Post subject: NonUniqueObjectException
PostPosted: Mon Jan 19, 2004 7:23 pm 
Newbie

Joined: Mon Jan 19, 2004 6:46 pm
Posts: 6
Location: Ottawa, CA
I have a situation where I'm loading a User object into the session in a filter. Almost all of my other domain objects are reachable from the User.

Trying to avoid problems when updating any object, I do a load() before changing any properties.

However, I often get a NonUniqueObjectException.

What is the usual culprit for this?

My understanding is that (A.getB() == Session.load(B))?

Thanks,

A.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 20, 2004 5:29 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Not always the case if you're using proxy.
Be more specific

_________________
Emmanuel


Top
 Profile  
 
 Post subject: Troubleshooting
PostPosted: Tue Jan 20, 2004 10:34 am 
Newbie

Joined: Mon Jan 19, 2004 6:46 pm
Posts: 6
Location: Ottawa, CA
I'm not sure if I'm using proxies.

The issue is simple that I'm raising a NonUniqueObjectException directly after doing a Session.load(). This doesn't make sense to me. Any ideas?

Thanks,

A.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.