开发者

Change Hypersonic DS to MySql DS

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜