openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "KARR, DAVID (ATTCINW)" <dk0...@att.com>
Subject RE: How to get hardcoded ordinal values to map to specific Enum values?
Date Fri, 18 Dec 2009 19:01:56 GMT
> -----Original Message-----
> From: Daryl Stultz [mailto:daryl@6degrees.com]
> Sent: Thursday, December 17, 2009 6:52 PM
> To: users@openjpa.apache.org
> Subject: Re: How to get hardcoded ordinal values to map to specific
> Enum values?
> 
> On Thu, Dec 17, 2009 at 6:31 PM, Craig L Russell
> <Craig.Russell@sun.com>wrote:
> 
> >  You would need your own value type as an extra attribute of your
> Enum
> > class, and then use a special OpenJPA mapping to get the values to
> and from
> > the database.
> >
> 
> Maybe it's the "special OpenJPA mapping" info the OP is looking for. I
> know
> I'm interested in it.

Yes, I'm probably going to have to find a reasonable solution for this.
My database stores the custom ordinal values, and I have to map to a
real Enum value.


Mime
View raw message