Given:
- A simple entity
- One attribute maps a jdbc VARCHAR to a SortedSet<Integer> using a custom user type
- Another attribute maps the very same VARCHAR column to a normal String field, but having it readonly (updatable=false and insertable=false)
When:
- When querying this entity
Then:
- An exception happens because hibernate mixes both properties java types
The only reason I need to map this column twice is:
- to be able to use it in HQL → e.sortedIdsExpression like :expression
This works fine in latest Hibernate 5 I’ll attach the test case as soon the Jira issue number is created. |