title: How to map a set of enum type in Hibernate?
body: <p>In hibernate, is it possible to define a mapping for a class to a set of enums?  </p>
  
  <p>I've been able to find examples of how to define mappings of Sets and I've been able to find separate examples for how to map Enums, but I cannot figure out how to define a  of Enums for a class.</p>
  
  <p>Could anyone please provide me with an example?  </p>
  
  <p>This is being built on top of an existing application, so I cannot alter the database schema. </p>
  
  <p>This is the relation I wish to model.  Wicket is a normal class and WicketType is a Java Enum.</p>
  
  <pre><code>+----------------+    +------------+    +------------+
  | Wicket         |    | Ref Table  |    | WicketType |
  +----------------+    +------------+    +------------+
  | INT     | W_ID |    |            |    | W_TypeId   |
  | ....    |      | FK | W_ID       | FK | WicketType |
  | INT     | TYPE |----| W_TypeId   |----|            |
  +----------------+    +------------+    +------------+
  </code></pre>
  
  <p>Thanks again</p>