I have two Oracle Database at 10.67.60.7 and 10.67.60.8 hosts.
Like de Person/Event hibernate example:
http://www.hibernate.org/hib_docs/v3/re ... l-firstapp
If i have the PERSON table in 10.67.60.7 and the EVENT table at 10.67.60.8
how to work with this enviroment?
hibernate1.cfg.xml
<hibernate-configuration>
<session-factory>
<property name="connection.driver_class">org.hsqldb.jdbcDriver</property>
<property name="connection.url">jdbc:hsqldb:hsql://10.67.60.7</property>
<property name="connection.username">User1</property>
<property name="connection.password"></property>
<mapping resource="events/Person.hbm.xml"/>
</session-factory>
</hibernate-configuration>
hibernate2.cfg.xml
<hibernate-configuration>
<session-factory>
<property name="connection.driver_class">org.hsqldb.jdbcDriver</property>
<property name="connection.url">jdbc:hsqldb:hsql://10.67.60.8</property>
<property name="connection.username">User2</property>
<property name="connection.password"></property>
<mapping resource="events/Event.hbm.xml"/>
</session-factory>
</hibernate-configuration>
When I try use Person occurs the exception below:
org.hibernate.MappingException: An association from the table PERSON refers to an unmapped class: events.Event