agentgt / jirm

A Java Immutable object Relational Mapper focused on simplicity, convenience, and thread safety.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Better Enum Support through @Enumerated

agentgt opened this issue · 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())

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.