jsr338-experts@jpa-spec.java.net

[jsr338-experts] Re: _at_Enumerated ignored directly on Enum class

From: Gordon Yorke <gordon.yorke_at_oracle.com>
Date: Mon, 09 May 2011 11:47:10 -0300

Hello Werner,
    Can you show an example of what it is you are wanting to do?
--Gordon

Werner Keil wrote:
> 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
>