Is it possible to reference the discriminator column in a HQL/JPQL query? I’d like to update it.
UPDATE Animal SET type = 'DOG'
type
is the column name of the discriminator column. It is not mapped in the entity (possible workaround?). Animal
uses single table inheritance.
This used to work with Hibernate 5 but no longer does with Hibernate 6, resulting in this error:
org.hibernate.query.SemanticException: Could not interpret path expression 'type'