EnumValue I suspect is going to be the best/clearest way to explicitly control how enum values are persisted to the DB.
public enum Status { @EnumValue("N") NEW, @EnumValue("A") ACTIVE, @EnumValue("I") INACTIVE, }
So the DB will persist and fetch "N" "A" and "I" ... for NEW, ACTIVE and INACTIVE.
This is likely to be the preferred approach over the existing EnumMapping and standard JPA approaches (Ordinal and String).
This is now in HEAD.