-->
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: Send NULL value when int property is 0.
PostPosted: Tue Sep 12, 2006 10:03 am 
Newbie

Joined: Sun Nov 20, 2005 10:23 am
Posts: 19
Hello,


There are possible, in mapping files, especifie that a int property don't must be persisted in database if it has a determined value (as 0), in this case the must be sended NULL to database.. This is possible?!


[]'s
FernandoVM


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 12, 2006 10:14 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
look at usertypes

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 12, 2006 10:36 am 
Newbie

Joined: Sun Nov 20, 2005 10:23 am
Posts: 19
There aren't a intrusive less way ? Does not possible do it with mapping files? :(

[]'s
FernandoVM


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 12, 2006 10:42 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
no, and why is it intrusive since it is a setting in your mapping file and and usertype implementation that does what you want.

_________________
Max
Don't forget to rate


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.