posted 19 years ago
I've looked through the current topics, but I haven't found an answer. So, here is another question on how to get Hibernate3 association mapping to work. Please let me know if you see why I get the following error: Association references unmapped class: ListValueDTO.
Thanks
I get the following error message in the server.log file:
2006-03-13 21:10:14,526 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/Program Files/jboss-4.0.3SP1/
server/default/deploy/jaw.ear
2006-03-13 21:10:14,526 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/C:/Program Files/
jboss-4.0.3SP1/server/default/deploy/jaw.ear -> file:/C:/Program Files/jboss-4.0.3SP1/server/default/deploy/jaw.ear
2006-03-13 21:10:14,526 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:
--- MBeans waiting for other MBeans ---
ObjectName: jboss.har:service=Hibernate
State: FAILED
Reason: org.hibernate.MappingException: Association references unmapped class: ListValueDTO
I Depend On:
jboss.jca:service=RARDeployer
jboss.jca:service=LocalTxCM,name=JBossAtWorkDS
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.har:service=Hibernate
State: FAILED
Reason: org.hibernate.MappingException: Association references unmapped class: ListValueDTO
I Depend On:
jboss.jca:service=RARDeployer
jboss.jca:service=LocalTxCM,name=JBossAtWorkDS
I have two classes, below, that get data from two tables created with the following statements:
Here are the class files:
and the second class:
Finally, here are the two .hbm files:
and the second file, ListValueDTO.hbm.xml:
[ March 14, 2006: Message edited by: Jack Scott ]
[Added code tage - Paul Sturrock]
[ March 27, 2006: Message edited by: Paul Sturrock ]