-->
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: how to get info about columns metadata?
PostPosted: Thu Dec 04, 2003 8:30 am 
Newbie

Joined: Wed Oct 08, 2003 11:27 am
Posts: 18
Hi,

I'm using ClassMetadata to get the field information for a mapped column.
How can I find if that column is nullable(not-null="true")?
And how can I find the length of the mapped field?
In fact how can I access a Column object?

Thanks,

Daniel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 04, 2003 8:33 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
(1) Use Hibernate 2.1rc1 is you want to do this kind of stuff
(2) ClassMetadata.getPropertyNullability()
(3) Its better to use the Configuration object for this kind of stuff


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 04, 2003 8:46 am 
Newbie

Joined: Wed Oct 08, 2003 11:27 am
Posts: 18
I'm using hibernate 2.1rc1.
ClassMetadata.getPropertyNullability() returns an boolean[].
I want to find this metadata properties for a single field in a certain moment.
How can is use Configuration class to obtain a Column object?

Thanks!


Top
 Profile  
 
 Post subject: how to get info about columns metadata?
PostPosted: Tue Mar 23, 2004 11:02 am 
Newbie

Joined: Tue Mar 23, 2004 10:25 am
Posts: 1
Location: Tucum
Im need to get the same info about a column, and i either dont know how to get it from a Configuration object. Have you solved you problem Daniel ?

Thanks in advance.

Carlos Kozuszko


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.