-->
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.  [ 1 post ] 
Author Message
 Post subject: How to read column properties via hibernate?
PostPosted: Fri May 20, 2011 7:33 am 
Newbie

Joined: Fri May 20, 2011 6:02 am
Posts: 1
Hi,

I want read the column properties as they are saved in the databes table from the respective mapped objects, so I can pass them around the program where I need them.

Example:

I have a table "Content", with a nvarchar column "Comment", which has a limit of 2000 chars and is nullable.
So I map this column to my Content class with options .Length(2000) and .Nullable(). I understand this is important for nhibernate so it can properly talk to the connected table.

BUT how can my program properly talk to the nhibernate object and pull this info from the Content object? What's the the most elegant way to do it?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.