-->
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.  [ 3 posts ] 
Author Message
 Post subject: Strategy with PersistentEnums of Strings (instead of ints)?
PostPosted: Mon Sep 08, 2003 10:25 pm 
Beginner
Beginner

Joined: Mon Sep 08, 2003 10:21 pm
Posts: 40
Location: Honolulu, HI
Hello,

First off, congrats on the new forum. It's much nicer than the old SF one.

I am working on mapping an existing DB to hibernate. There is a perfect candidate for a PersistentEnum, except it is a collection of Strings instead of ints.

How do people deal with this situation? By just creating a custom type, or just not bothering making it a enumeration? I'd love to take advantage of PersistentEnum if I can map these Strings in the column.

Any tips or hints would be greatly appreciated,
Thanks again!
Seth


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 08, 2003 10:48 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Yes, for now, UserType is the answer.

I might accept the existing PersistentStringEnum patch. Still considering it. There is a discussion in JIRA about it.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 09, 2003 1:54 pm 
Beginner
Beginner

Joined: Mon Sep 08, 2003 10:21 pm
Posts: 40
Location: Honolulu, HI
OK, no prob. I'll check out the discussion because I'm curious as to what the discussion is all about.

In the meantime, I'll check out UserType.

Thanks for the quick and helpful response!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.