Just a quick question:
I want to use an EnumMap in one of my entity classes.
Is there a special way to annotate these?
What happens to it if I don’t annotate it explicitly?
More specific: I want the Key to be persisted as String values rather than int values.
cheers
You can use the annotation @MapKeyEnumerated(STRING) for this purpose, if the key for your map is an Enum: http://download.oracle.com/javaee/6/api/javax/persistence/MapKeyEnumerated.html