Hi,
hi have a DB which contains a USER table, allowing to determine which Hibernate session (linked to anoter DB) to use for the connected user.
The problem is that some tables of these anoter DB are referencing the obejct USER.
Is that possible to configure the mapping files so that the "user" attirbute references another DB ?
My mapping :
Code:
<hibernate-mapping package="com.abw.valueobject">
<class name="com.abw.valueobject.AppelVO" table="SCHEMACRM.APPEL" dynamic-update="true" lazy="true">
<id name="id" column="ID_APPEL">
<generator class="increment" />
</id>
...
<many-to-one name="user" column="ID_USER" lazy="proxy" fetch="select" />
</class>
</hibernate-mapping>
here the attribut "user" has to be linked to another DB.
Thanks a lot.