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.  [ 3 posts ] 
Author Message
 Post subject: How I can get the property length defined in mapping files?
PostPosted: Tue Sep 18, 2007 8:44 am 
Newbie

Joined: Tue Sep 18, 2007 8:00 am
Posts: 2
Location: Misiones, Argentina
Hello,
I just want to know if I can get the length defined in a property.

For example, if I have this line in a mapping file:

<property name="my_property" column="my_property" type="String" length="20" />

I need to get the value "20" (which was defined in length). How can I do it?

Thank you and sorry for my bad English.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 18, 2007 9:42 am 
Expert
Expert

Joined: Fri Oct 28, 2005 5:38 pm
Posts: 390
Location: Cedarburg, WI
See this post:

http://forum.hibernate.org/viewtopic.php?t=977695

Besides keeping the configuration object used to start NHibernate, apparently you can call GetAllClassMetadata on your session factory.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 18, 2007 7:45 pm 
Newbie

Joined: Tue Sep 18, 2007 8:00 am
Posts: 2
Location: Misiones, Argentina
Thank you very much!
based in that code I solved my problem


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