• Post Reply Bookmark Topic Watch Topic
  • New Topic

Query on hibernate entity with user-type field

 
avihai marchiano
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

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.

Any idea?
 
I found a beautiful pie. And a tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!