-->
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: how to tell Hibernate when serializable property is dirty?
PostPosted: Fri Jan 30, 2004 9:31 am 
Newbie

Joined: Tue Oct 07, 2003 3:58 pm
Posts: 16
Location: Netherlands
I have got an object that is persisted by Hibernate and holds a Serializable property within (a complex structure of fine-grained objects which I don't want to store in separate database tables, anyway it's an 'composition' in UML terms).

The problem is that Hibernate does see changes in properties exposed as persistent, but the Serializable thing seems to be non-transparent. In other words, any setXXX() methods called on Serializable itself or on the objects it consists of are not visible to Hibernate and, as a consequence, changes are not persisted.

Is there a recommended way (smarter than what I do now, just explicitly calling update() methods on Hibernate's Session) to track changes within Serializable?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 30, 2004 11:21 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
You are mistaken. Check the implementation of SerializableType. It is all handled transparently.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 30, 2004 4:33 pm 
Newbie

Joined: Tue Oct 07, 2003 3:58 pm
Posts: 16
Location: Netherlands
Yes indeed. You are right, Gavin.
Awfully sorry for bothering you.


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.