• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to check if Hibernate cfg file loaded

 
Kishen Singh Punjabi
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have two projects A,B in eclipse.

Project B has a dependency on project A and is included as a maven dependency.
A.jar is included in the Maven dependencies of Project B.
A.jar contains the hibernate.cfg.xml file which has connection details and some hbm files declarations.

In project B there is one more hibernate.cfg.xml which do not have any connection details as connection is already done to DB but it have some more hbm files declarations.

What is happening is that the Project B's hibernate cfg file is not loaded and named queries, mapping beans in hbm file are not detected.

How to detect and fix the hbm file loading.

Thanks for the help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic