Add the possibility to have enumerated values in collections :
private Set<MyEnum> enums;
private Map<MyEnum, Date> enumsByDates;
private Map<String, MyEnum> enums2;
Rather than introducing new enums, I would suggest adding new attributes to the current @Enumerated annotation:
Something like this:
Hint: with Java8, you can put annotation in type parameters:
We are considering drop support for @Enumerated in our next major release.
Enum support will be provided by codecs in the new driver-extras module (see ):
and this has been fixed in the 3.0.0-alpha5 version. Feel free to reopen if this feature is critical for you and you cannot upgrade to 3.0.