This content has been marked as final.
Show 1 reply
-
1. Re: @Enumerated with non-ordinal enumeration
alexg79 Dec 15, 2006 7:37 AM (in response to jeilong)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.