You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My database stores values I’d like to map to enum, however they differ slightly from the enumname()s. Currently I have to write a ColumnMapper to map them correctly. It would be nice to use annotations instead.
Example:
Database contains values CREATE and UPD
Java enum consists of CREATE and UPDATE
Suggestion: Provide annotations handled by the default enum mappers. For example, the enum could look like this:
My database stores values I’d like to map to
enum
, however they differ slightly from theenum
name()
s. Currently I have to write aColumnMapper
to map them correctly. It would be nice to use annotations instead.Example:
Database contains values
CREATE
andUPD
Java
enum
consists ofCREATE
andUPDATE
Suggestion: Provide annotations handled by the default enum mappers. For example, the
enum
could look like this:This is similar to Jackson which provides
@JsonValue
to mapenum
s from and to JSON.The text was updated successfully, but these errors were encountered: