Our delete query fails with ClassCastException: class org.hibernate.metamodel.mapping.internal.BasicAttributeMapping cannot be cast to class org.hibernate.metamodel.mapping.EntityValuedModelPart (org.hibernate.metamodel.mapping.internal.BasicAttributeMapping and org.hibernate.metamodel.mapping.EntityValuedModelPart are in unnamed module of loader 'app') query is (hiding business namings):
I tried to debug into Hibernate, and I got until BaseSqmToSqlAstConverter.visitWhereClause() → .visitJunctionPredicate() where in the first for cycle is reaching the fourth subpredicate (rId). I guess there is some issue with the nested select, but not sure if it is intentional (would be a dedicated HibernateException for that) or is a bug (I think so) |