<Projection fails with InstantiationException afte...
# stackoverflow
r
Projection fails with InstantiationException after Hibernate 6 migration After the migration to Quarkus 3.14 and Hibernate 6, custom query projections stopped working. I have many more examples but all comes to this exception and combination of a custom query and an aggregate class projection. The exception I get: org.hibernate.InstantiationException: Cannot instantiate query result type 'xx.domain.UnitDetails' due to: xx.domain.BusinessUnitDetails.(java.lang.String,xx.domain.BusinessUnitType,java.lang.Integer) at...