-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate UserType
PostPosted: Wed Oct 20, 2010 5:40 pm 
Newbie

Joined: Fri Mar 06, 2009 11:22 am
Posts: 16
I have implemented my own usertype but what is concerning to me is that after doing something with the data in the user type (i.e. lets say I save foo to the database but when I read it back I want to add bar so the string becomes foobar) hibernate detects a change in the entity and persists that change, even though I don't want that change. I had assumed that the call to the equals() method I have implemented (which is returning true for these objects) would stop the persist from happening but that is not the case. Is there some way to stop hibernate from tryign to do an update in this case?


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

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.