-->
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: Enum
PostPosted: Tue Aug 07, 2007 6:24 am 
Newbie

Joined: Tue Aug 07, 2007 5:59 am
Posts: 2
Nhibernate.

How can I store enum value(ie integer) instead of varchar in my database.

Help Please


Top
 Profile  
 
 Post subject: Re: Enum
PostPosted: Tue Aug 07, 2007 7:49 am 
Senior
Senior

Joined: Thu Feb 09, 2006 1:30 pm
Posts: 172
senthilk wrote:
Nhibernate.

How can I store enum value(ie integer) instead of varchar in my database.

Help Please


I honestly thought the integer value was the default. I've stored all of my enumeration values that way. I do not specify a type on the enumeration property of the mapping file, but my database column is of type integer (or sometimes smallint if I set the enum to short).


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.