I try to switch an existing (and well deploying) application to MySql instead of Hypersonic. After I follow all steps from JBoss tutorial my application fails in deploy saying:
org.hibernate.MappingException: An association from the table OLOLO refers to an unmapped class: com.trololo.pack.Class.
MySql DB for JBoss has become filled with the data. But my app's DB is empty. I guess it is something wrong开发者_开发问答 with hibernate, right?
I have JBoss 4.2.3. In the /default/deploy dir I have 2 *-ds.xml files. One for the JBoss and another for my app. Please share your ideas what is wrong there? Any help is welcome.
I got the solution. For the unknown reason Hibernate didn't allow to mention com.trololo.pack.Class in cfg.xml for OLOLO class. After I set annotations it worked.
精彩评论