jsr338-experts@jpa-spec.java.net

[jsr338-experts] _at_Enumerated ignored directly on Enum class

From: Werner Keil <werner.keil_at_gmx.net>
Date: Sun, 08 May 2011 09:02:57 +0200

Hi,

I came across a strange behavior regarding the @Enumerated(EnumType.STRING) annotation when used directly on an Enum class.

All code works perfectly fine storing an Enum as part of an @Embeddable class, except for the annotation which is basically ignored in this case.

Once using a concrete enum type there instead it works.

Is there a reason for this or could it be fixed in 2.1?

Thanks,
Werner
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de