Using object with
@Enumerated(EnumType.STRING)
and put it into cache.
Get java.io.NotSerializableException:org.hibernate.type.EnumType$NamedEnumValueMapper