-->
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.  [ 4 posts ] 
Author Message
 Post subject: reassociated object has dirty collection reference
PostPosted: Wed May 30, 2007 10:22 am 
Newbie

Joined: Fri May 25, 2007 10:04 am
Posts: 3
Hi there,

Error: "reassociated object has dirty collection reference (or an array)" - what does this mean?

Obviously it's happening when I attempt to reattach an object to the session. I'm assuming it means the object I am attempting to reattach has a reference to a dirty collection/array.

In this context what does "dirty" mean?

Cheers

Lord0


Top
 Profile  
 
 Post subject: Re: reassociated object has dirty collection reference
PostPosted: Wed May 30, 2007 10:26 am 
Newbie

Joined: Wed May 30, 2007 3:18 am
Posts: 2
Normally dirty means unsaved, i.e. new or modified. In other words something has been added to or removed from the collection since the owning object was last read from or saved to the database.


Top
 Profile  
 
 Post subject: Re: reassociated object has dirty collection reference
PostPosted: Wed May 30, 2007 10:36 am 
Newbie

Joined: Fri May 25, 2007 10:04 am
Posts: 3
e.bergersjo wrote:
Normally dirty means unsaved, i.e. new or modified. In other words something has been added to or removed from the collection since the owning object was last read from or saved to the database.


First of all, thanks for reply. :)

Second: Maybe Im not getting this - I thought the point of Hibernate was that I could get a graph of objects representing records from the DB, modify these Java objects and then write back to DB.

According to your definition (which I appreciate) this approach will *always* be dirty because "something has been added to or removed from the collection since the owning object was last read"????


Top
 Profile  
 
 Post subject: Re: reassociated object has dirty collection reference
PostPosted: Wed May 30, 2007 10:38 am 
Newbie

Joined: Fri May 25, 2007 10:04 am
Posts: 3
e.bergersjo wrote:
Normally dirty means unsaved, i.e. new or modified. In other words something has been added to or removed from the collection since the owning object was last read from or saved to the database.


First of all, thanks for reply. :)

Second: Maybe Im not getting this - I thought the point of Hibernate was that I could get a graph of objects representing records from the DB, modify these Java objects and then write back to DB.

According to your definition (which I appreciate) this approach will *always* be dirty because "something has been added to or removed from the collection since the owning object was last read"????


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