> -----Original Message-----
> From: Daryl Stultz [mailto:[email protected]]
> Sent: Thursday, December 17, 2009 6:52 PM
> To: [email protected]
> 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
> <[email protected]>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.

Reply via email to