Register / Login
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Object Relational Mapping
Query on hibernate entity with user-type field
posted 7 years ago
working with JPA above hibernate impl. I map my enums by using user-type follow the good practice to store a persistence key to the enum and not the ordinal (which can be changed).
Now, i have a problem to query on the enum field. it seems that hibernate dont execute the user type convert on the name-query.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
Boost this thread!
Mapping ENUM('0', '1') or CHAR(0) for Boolean
hibernate not retrieving data from database
enums in ejb queries
Strange Enum behaviour?
Storing Enum Types