Hibernate is treating Collections as String in Criteria subsystem
Issue
- In
Hibernate 6, when calling "get()" on a root entity with a plural attribute,Hibernatetreats that path as if it is a single attribute, and because the underlying elements areStrings, the path will reportString.classas its Java type. - This issue only occurs when the
@ElementCollectionannotation is used.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 8
- Hiberante 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.