I have a color listing
public enum color { GREEN, WHITE, RED }
and I have MyEntity that contains it.
public class MyEntity { private Set<Color> colors; ...
I already have a UserType to display my Enums.
Do you know how to map a transition set in Hibernate hbm.xml?
Do I need UserType or is there an easiest way?
thanks
edit:. To notice, I'm looking for hbm.xml configuration, not @CollectionOfElements Annotation
java set enums orm hibernate
mickthompson
source share