jirm icon indicating copy to clipboard operation
jirm copied to clipboard

Better Enum Support through @Enumerated

Open agentgt opened this issue 11 years ago • 1 comments

JIRM should automatically convert Enum values to the correct SQL datatype on SQL execution. Whether the ordinal or name should be used would be based on the @Enumerated JPA annotation

For right now you have to do:

.property("pageType").eq(PageType.PUBLIC.name())

Or

.property("pageType").eq(PageType.PUBLIC.ordinal())

agentgt avatar Jan 19 '13 17:01 agentgt