开发者

Using hibernate in Java EE app

开发者 https://www.devze.com 2022-12-20 05:34 出处:网络
I am maintaining following structure for my project Web - Web Project Model - EJB Project Persistence - Java project having data classes and their mapping for Hibernate

I am maintaining following structure for my project

Web - Web Project

Model - EJB Project

Persistence - Java project having data classes and their mapping for Hibernate

Pokuri - EAR Project

As we know we can give jar file to hibernate configuration to load mappi开发者_StackOverflowng information from jar. As I deploy EAR on to server I just want to build SessionFactory from mapping files in Persistence jar. But I am unable to get the path for that jar. Plz guide me to get the jar path. Or suggest me the best way to build SessionFactory and bind the same to a JNDI name.


Take a look at this thread - it may contain useful information.

Also, make sure your jar is mapped in your application.xml as an ejb module.

0

精彩评论

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

关注公众号