Is there a way in JPA to map a collection of Enums within the Entity class? Or the only solution is to wrap Enum with another domain class and use it to map the collection?<
I was able to accomplish this in this simple way:
@ElementCollection(fetch = FetchType.EAGER) Collection interests;
Eager loading is required in order to avoid lazy loading inizializing error as explained here.