These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate configuration mapping jar
PostPosted: Tue Nov 14, 2006 3:36 am 
Newbie

Joined: Tue Nov 14, 2006 3:20 am
Posts: 3
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.