-->
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: type safe enum mapping
PostPosted: Wed Jul 14, 2004 12:07 pm 
Newbie

Joined: Wed Jul 14, 2004 12:02 pm
Posts: 1
i have just one question,
my bussines objects have some atributtes that are type safe enum (i.e. Sex) , my question is what is the way to map this with hibernate (the uggly solution is to have a boolean in my dataBase and construct the type safe after the session has loaded the object).

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 14, 2004 12:50 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
The cleanes solution is to use a custom UserType


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.