-->
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: not-null="true/false" & PropertyValueExceptio
PostPosted: Mon Mar 07, 2005 8:27 pm 
Beginner
Beginner

Joined: Fri May 21, 2004 12:21 pm
Posts: 22
Location: Sacramento CA, USA
Hi
I read in the documentation that the not-null="true/false" value in the <property> tag is only used by the schema generator and it will not enforce any not null constraint. But when I try to save an object with a nullable field in the database and is mapped not-null="true" in the mapping file, it is throwing a error saying PropertyValueException.
Is this a feature which is not documented right or am I understanding something wrong????


Hibernate version:2.1.6
Name and version of the database you are using: UBD 8.2.0


Thanks
Bose


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.