-->
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: Get length of property at runtime?
PostPosted: Wed Jun 15, 2005 11:15 am 
Newbie

Joined: Wed Jun 15, 2005 11:09 am
Posts: 10
Location: Salem, MA
Is there some way to access the maximum length of a property at runtime? I'm convinced there has to be some way to get that information in my code, but I haven't succeeded in finding a reference to it anywhere.

Thanks

Colin


Top
 Profile  
 
 Post subject: Length of property at runtime
PostPosted: Thu Jun 16, 2005 4:39 am 
Have a look at the NHibernate.Mapping namespace. It features classes such as PersistentClass, which has a PropertyCollection property, which gives you a Collection of NHibernate.Mapping.Property instances. Or maybe you need to use Table and Column classes, also in the Mapping namespace. NHibernate.Cfg.Configuration has a property called ClassMappings, which probably gives you access to the classes I just mentioned.
These are just some hints, I have never worked with these class.


Top
  
 
 Post subject:
PostPosted: Thu Jun 16, 2005 9:28 am 
Newbie

Joined: Wed Jun 15, 2005 11:09 am
Posts: 10
Location: Salem, MA
Thanks. I'll take a look into them.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 18, 2005 5:11 pm 
Senior
Senior

Joined: Thu Jun 02, 2005 5:03 pm
Posts: 135
Location: Paris
Has anyone found a solution to this?

Cheers,

Symon.


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.