The problem is that ValueHandlerFactory.determineAppropriateHandler doesn't recognize enum as a type it can handle, hence returning null --> NPE. The problem with enums is, that there is not enough information just from the enum value, to know how the value is stored in DB – either as ordinal or plain name string. |