Since ordinal values start with 0, database would contain different
integer constants than what user wants, won't it?
Thanks,
Sahoo
glassfish_at_javadesktop.org wrote:
> Sahoo,
>
> By default @Enumerated annotation tells the provider to store the ordinal value of the enum. So just an enum should work, right?
>
> thanks,
> -marina
> [Message sent by forum member 'mvatkina' (mvatkina)]
>
> http://forums.java.net/jive/thread.jspa?messageID=240756
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>