openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Re: How to get hardcoded ordinal values to map to specific Enum values?
Date Sat, 19 Dec 2009 21:08:28 GMT
Hi,

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

>> -----Original Message-----
>> From: Craig.Russell@Sun.COM [mailto:Craig.Russell@Sun.COM]
>> Sent: Friday, December 18, 2009 1:59 PM
>> To: users@openjpa.apache.org
>> 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:jsr-317-feedback@sun.com

Craig

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


Mime
View raw message