Hello, we’ve migrate our project from 5 to 6.6.0 final.
We have main entity class test and subclasses test$aa and test$bb. In both subclasses we have field aaNbo annotated manyToMany to the same other class
We use single_table mapptig for test class.
Before upgrade we can use hql like this:
def hql = “”"
SELECT a.id
FROM test a
LEFT JOIN a.aaNbo g
But now we have exception:
“”"IllegalArgumentException, message: org.hibernate.query.PathException: Could not resolve attribute ‘aaNbo’ of ‘test’ due to the attribute being declared in multiple subtypes ‘test$aa’ and ‘test$bb’
How we can rewrite our entities or maybe rewrite hql to get correct result?
Why in prev version of hibernate that hql worked fine? What changes inside hibernate?