agentgt / jirm

A Java Immutable object Relational Mapper focused on simplicity, convenience, and thread safety.
Apache License 2.0
66 stars 10 forks source link

Better Enum Support through @Enumerated #4

Open agentgt opened 11 years ago

agentgt commented 11 years ago

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 commented 11 years ago

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.