-->
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: Metadata
PostPosted: Thu Oct 27, 2005 8:35 am 
Newbie

Joined: Thu Oct 27, 2005 8:31 am
Posts: 3
Hi all,

I read the "Using metadata" section in the hibernate docs to learn how to use the metadata.
http://www.hibernate.org/hib_docs/v3/re ... e-metadata

But I couldĀ“t find a way to check if a property is not-null.

Is there a way to do that?

thanks in advance
Ricardo


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 27, 2005 10:53 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
grab connection,table name and column name and check in database with DatabaseMetadata

"not null" in hibernate is hint for schema export (i think) and real nullability is in database


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.