-->
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: Mapping varchar Y/N columns to Boolean
PostPosted: Fri May 05, 2006 1:10 pm 
Newbie

Joined: Sat Feb 11, 2006 12:11 pm
Posts: 7
Hi all,

Is it possible to automatically handle the convertion between a Boolean property and a varchar(1) DB column that has the values "Y" and "N" ?

I know about IUserType but I try to avoid using a custom type for bool properties in my classes. Any other options?

I wasn't able to find an answer on the forum...

Thanks for any answers!


Top
 Profile  
 
 Post subject: I found this answer in nhibernate_reference.pdf
PostPosted: Fri May 05, 2006 1:26 pm 
Newbie

Joined: Sat Feb 11, 2006 12:11 pm
Posts: 7
I should have read the doc more carefuly.

Actualy there is a "YesNo" NHibernate type, as well as "TrueFalse" type.


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.