-->
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: Object referenced in two places problem
PostPosted: Tue Mar 30, 2004 11:56 am 
Newbie

Joined: Thu Nov 20, 2003 10:35 am
Posts: 1
Hi,

I have an object that is referenced from two different places in my object graph.

The relationship work fine in that I can indeed set that it has loaded this object into both the parent objects that reference it. However, when you inspect the object it is actually a different instance of the object, even though in terms of it's values and it's primary key, it is the same.

I thought that if an object is loaded in several places it would actually be the same object. Am I incorrect?

I won't provide any mapping files just yet as I'm not sure if it is just me not understanding :)

Kieran


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 30, 2004 2:22 pm 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
Quote:
when you inspect the object it is actually a different instance of the object


just a stupid question, these inspected objects have been retrieved from the same session?


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.