Hibernate version:
3.0
Good day to all,
I'm using Hibernate 3 with JBoss 4.0.3 SP1; I'm deploying using the .har archives, but I have a little problem.
I have 2 .har files which map different tables on the same database; however, the 2nd .har references, in a many-to-one relationship, a class of the 1st .har file.
While trying to load the 2nd .har, it gives a org.hibernate.MappingException: An association from table xxxx refers to an unmapped class yyyy
Mapping documents:
1st .har jboss-service.xml
Code:
<mbean code="org.jboss.hibernate.jmx.Hibernate" name="jboss.har:service=tu-core">
<attribute name="DatasourceName">java:/CacheDS</attribute>
<attribute name="Dialect">com.tu.hibernate.CacheDialect</attribute>
<attribute name="SessionFactoryName">java:/hibernate/SessionFactory/tu-core</attribute>
<attribute name="CacheProviderClass">org.hibernate.cache.HashtableCacheProvider</attribute>
<attribute name="ShowSqlEnabled">true</attribute>
</mbean>
2nd .har jboss-service.xml
Code:
<mbean code="org.jboss.hibernate.jmx.Hibernate" name="jboss.har:service=tu-accessControl">
<attribute name="DatasourceName">java:/CacheDS</attribute>
<attribute name="Dialect">com.tu.hibernate.CacheDialect</attribute>
<attribute name="SessionFactoryName">java:/hibernate/SessionFactory/tu-accessControl</attribute>
<attribute name="CacheProviderClass">org.hibernate.cache.HashtableCacheProvider</attribute>
<attribute name="ShowSqlEnabled">true</attribute>
</mbean>
Is there any workaround to this problem short of putting all the classes in the same .har file?
I'd really like to separate the logic between the persistence classes.
Best regards
domyalex