Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Better Enum Support through @Enumerated #4

Open
agentgt opened this issue Jan 19, 2013 · 1 comment
Open

Better Enum Support through @Enumerated #4

agentgt opened this issue Jan 19, 2013 · 1 comment
Milestone

Comments

@agentgt
Copy link
Owner

agentgt commented Jan 19, 2013

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
Copy link
Owner Author

agentgt commented Mar 11, 2013

Work for insert and update but not where clauses. The where clause will be difficult to do given the where builders are decoupled from object meta data.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant