I have failing Failing test case with JPQL: {{from Employee e where e . contractType = org.hibernate.test.converter.QueryTest.ContractType.INTERNAL}}
is proposed here: [https://github.com/hibernate/hibernate-orm/compare/master...luvarqpp:patch-1|https://github.com/hibernate/hibernate-orm/compare/master...luvarqpp:patch-1]
pull request: [https://github.com/hibernate/hibernate-orm/pull/3097|https://github.com/hibernate/hibernate-orm/pull/3097|smart-link]
I will update this issue am not sure that query is correct ( as soon ContractType enum is inner class for QueryTest class). If it is correct, problem leaves in select does not escape converted enum character.
Use case:
Enum ContractType should be stored in database as I provide issue id to pull request single character code (field can have {{@Column(length = 1)}}). JPQL with test restriction to some particular enum value, does not escape converted character (i . e. {{select x from XXX x where x.y=C}}, instead of {{select x from XXX x where x.y='C'}}. |
|