2 Replies Latest reply on Dec 8, 2006 12:28 PM by Gustav Trede

    EnumSet mapping

    Richard Wallace Newbie

      What's the best way to map an EnumSet in EJB3?

      What I'd like is for the EnumSet to map to a single column in the table, something like a bit vector, which is how EnumSets are implemented internally (according to the javadoc at least). That way, it's not off in some other table and loading it doesn't add any extra overhead and querying it is relatively simple.

      Any way to accomplish all that or should I just stick with a regular set for now?