org.hibernate.test.annotations.collectionelement.CollectionElementTest#testSimpleElement
Boy#favoriteFoods is a Map<String, Enum>. The following is inserted:
"breakfast":PIZZA
"lunch":KUNGPAOCHICKEN
"dinner":SUSHI
Debugging shows that the map keys and enum values are inserted as expected. However, when the Boy is queried, the following results:
PIZZA:PIZZA
KUNGPAOCHICKEN:KUNGPAOCHICKEN
SUSHI:SUSHI
Something db-specific is causing the enum values to be written as the map key.
|