Hi there,
Is it true, that a generator doesen't respects the schema from the class?
for example:
Code:
<hibernate-mapping package="ch.globus.nglr" >
<class name="NglrHeader" table="NGLR_HEADER" schema="XXX">
<id
column="HEADERID"
length="10"
name="headerId"
type="int"
unsaved-value="0"
>
<generator class="increment" />
</id>
<property
column="COMPANY"
length="5"
name="company"
not-null="true"
type="int"
/>
The error comes like this: SQL0204N "DB2ADMIN.NGLR_HEADER" is an undefined name.
After changing to:
Code:
<hibernate-mapping package="ch.globus.nglr" >
<class name="NglrHeader" table="NGLR_HEADER" schema="XXX">
<id
column="HEADERID"
length="10"
name="headerId"
type="int"
unsaved-value="0"
>
<generator class="increment" >
<param name="schema">XXX</param>
</generator>
</id>
<property
column="COMPANY"
length="5"
name="company"
not-null="true"
type="int"
/>
It works...
Is this the real case?