-->
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.  [ 3 posts ] 
Author Message
 Post subject: Reading mapping files from classpath question
PostPosted: Fri Dec 03, 2004 6:11 am 
Newbie

Joined: Thu Sep 23, 2004 1:57 pm
Posts: 6
Is there a way to read in runtime all mapping documents from specific location of JARs in classpath?

I would like to have application that knows nothing about mapping of data that belongs to components. Component has it's own jar with "hbm.xml" files in "mapping" directory.
In runtime all mappings from all jars are read into Session Factory. Is there a way to do it or I really have to copy all mapping files to one directory in client application.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 03, 2004 6:32 am 
Expert
Expert

Joined: Thu Jan 29, 2004 2:31 am
Posts: 362
Location: Switzerland, Bern
Hava look at the various add methods of net.sf.hibernate.cfg.Configuration.

HTH
Ernst


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 03, 2004 6:57 am 
Newbie

Joined: Thu Sep 23, 2004 1:57 pm
Posts: 6
Of course I did before I posted. No help.


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

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.