I'm using version 3.1.1. I realized a library jar that perform all the persistence layer functionalities for many web application that share the same data structure. Obviusly the persistence is based on hibernate.
Including this jar in the web application I faced a problem with the hibernate configuration file. What I would like to do was to configure the hibernate.cfg.xml of the web application using the tag
Code:
<mapping jar="library.jar" />
instead of a block of many
Code:
<mapping resource="...hbm.xml" />
These beacause updating my library with new functionality I have to know which hbm files I have to add in the configuration of all the web application.
After few tries I saw that doesn't works with the first configuration, but works with the second one. I saw in the forum other thread about this problem. The jar is in the WEB-INF/lib directory.
Exists other solutions that permits the "packaging" of the hbm files?
thx