-->
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: mapping Java enum whitout annotation
PostPosted: Mon Jun 16, 2008 8:50 am 
Newbie

Joined: Mon Jun 16, 2008 8:28 am
Posts: 4
Hi,

Pretty simple question here. I've read tons of posts in the forum, but I can't believe It is impossible to do the mapping I want in the following the following context :

I have the simplest mapping you can imagine (public enum MyEnum { EnumA, EnumB; })
I'm using Hibernate 3.1.3.
I do not, nor I can, use annotations. I use mapping files.

What I want to do is very simple : I want to map an enum object property to a column (string value). And I do not want to write UserType or other extra code.

So in a more direct way as possible, is it possible to do want I want given my context ? I it is, could you please indicate me how to proceed.

Thanks and have a nice day.


renam


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.