开发者

Change Hypersonic DS to MySql DS

开发者 https://www.devze.com 2023-04-08 12:02 出处:网络
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:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消