-->
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.  [ 2 posts ] 
Author Message
 Post subject: Not null column and default value
PostPosted: Wed Dec 22, 2004 12:06 pm 
Newbie

Joined: Mon Aug 23, 2004 9:23 am
Posts: 12
Hibernate version: 2.0

Hi,
What I have got is a MySql table with some columns with a not-null constraint but with a default value. When I try to persist the proper bean to a row in this table, it fails if I haven't set a value for each not-null column ( BTW, none of them are primary keys). I thought that, yes, I don't set a value for them but they have a default value, so, is there any way to make it work or I must fill all the bean's fields??
Thanks and greetings.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 22, 2004 12:08 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
"it fails" is not really a good problem description.


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