Hi,

On Dec 19, 2009, at 11:04 AM, KARR, DAVID (ATTCINW) wrote:

-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Friday, December 18, 2009 1:59 PM
To: [email protected]
Subject: Re: How to get hardcoded ordinal values to map to specific
Enum values?

Hi,

I haven't used this, but it seems that you should start looking at
EnumValueHandler:

http://openjpa.apache.org/builds/latest/docs/javadoc/org/apache/ openjpa
/jdbc/meta/strats/EnumValueHandler.html

It appears this feature is completely custom to OpenJpa, and isn't even in the JPA 2.0 specification. That's unfortunate, but it appears to be
the only way to do this.

I agree. It's too late for this cycle of JPA specification, but please take the time to let the JPA folks know what you'd like to see in future releases of the specification.

mailto:[email protected]

Craig

Craig L Russell
Architect, Sun Java Enterprise System http://db.apache.org/jdo
408 276-5638 mailto:[email protected]
P.S. A good JDO? O, Gasp!

Reply via email to