hibernate-mapping's schema is ignored

Description

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.

Activity

Show:

Andrea Boriero April 12, 2016 at 11:16 AM

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Created April 8, 2016 at 9:54 AM
Updated June 2, 2016 at 3:51 AM
Resolved May 12, 2016 at 9:47 AM