I'm using the current default annotation:
@Enumerated(EnumType.STRING) and @MapKeyEnumerated(EnumType.STRING)
I think put enum as String is better for my project.
I put all my entities jar in one jar, used as shared api for an using with hibernate and other application which doesn't need hibernate, but need same class which are popolated from XML. I want to set in my maven pom hibernate-jpa jar as provided. So, when I need the hibernate-jpa jar I declare it in the pom.
Is it possible to set, as default configuration of mapping, in hibernate starting configuration, that all Enum will be mapped as EnumType.STRING?
The problem is have less number of unused libraries in each EAR.
Thanks for any help.
|