Check the unit test suite of hibernate annotations
There is currently no support for using EnumSet natively in an entity for HB.
are there any plans to fix that ? (i cant find anything in the JIRA issue tracking).
it would be nice to have out of the box support for EnumSet stored as its bit values from ordinal() in a compact manner in the DB =)
The RI for JPA , toplink ess. currently has this feature also missing,
but its to be fixed:
On a broader perspective , it would be convenient if code running on the RI for the spec , could be used on other JPA implementations without the need for writing usertype classes etc ?.
if i can somehow assist regarding this matter, i would gladly do so.