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:
--- 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 ]
Mark, Yes both mapping files are in my posting: CoinDTO.hbm.xml and ListValueDTO.hbm.xml. The ListValueDTO.hbm.xml file doesn't appear to be valid for some reason. Could there be a problem with the foreign key setup in the Hypersonic database I'm using? Please see the two table create scripts at the beginning of my submittal. [ March 15, 2006: Message edited by: Jack Scott ]
Avinash Rawana
Ranch Hand
Joined: Feb 22, 2006
Posts: 31
posted
0
You are deploying with a HAR correct?
I would unzip the HAR and get the directory structure to make sure everything is in the right place.
You need to use a fully qualified class name in the class attribute of the <many-to-one> and <set> tags. Just add the package prefix and it should work.
Arun Kumar
Ranch Hand
Joined: May 22, 2006
Posts: 62
posted
0
This is bang on target.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.