[jboss-user] [EJB 3.0] - Re: @Enumerated with non-ordinal enumeration

alexg79 do-not-reply at jboss.com
Fri Dec 15 07:37:03 EST 2006


You have misunderstood the way it works.
What if you had multiple attributes, like MALE("M", 1, 2)? How would it work then, hmm??
The answer is that it doesn't -- it uses the enumeration names, such as MALE and FEMALE. Replace "M" and "F" in your database with "MALE" and "FEMALE", respectively.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994205#3994205

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994205



More information about the jboss-user mailing list