During migrating from Hibernate 4.3.7.Final to 5.1.0.Final the schema specified in the hibernate-mapping element stopped being applied to its subelements. E.g. the HQL query "from TaskInstance" results in the SQL query "... from JBPM_TASKINSTANCE" instead of the expected "... from JBPM.JBPM_TASKINSTANCE".
We have some legacy mapping via *.hbm.xml files:
<hibernate-mapping default-access="field" schema="JBPM"> <class discriminator-value="T" name="org.jbpm.taskmgmt.exe.TaskInstance" table="JBPM_TASKINSTANCE" >
During migrating from Hibernate 4.3.7.Final to 5.1.0.Final the schema specified in the
hibernate-mapping
element stopped being applied to its subelements.E.g. the HQL query
"from TaskInstance"
results in the SQL query"... from JBPM_TASKINSTANCE"
instead of the expected"... from JBPM.JBPM_TASKINSTANCE"
.Specifying schema in the class element:
<class discriminator-value="T" schema="JBPM" name="org.jbpm.taskmgmt.exe.TaskInstance" table="JBPM_TASKINSTANCE" >
results in the schema being taken into account again.