-->
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.  [ 2 posts ] 
Author Message
 Post subject: How to include hbm.xml files within jar files?
PostPosted: Sun Jun 11, 2006 2:10 am 
Newbie

Joined: Sun Jun 11, 2006 2:03 am
Posts: 1
Location: CA
I'm currently using the latest version of Hibernate Tools (hbm2java task within Ant build script).

I have some libraries written by someone else. Those libraries have some hbm.xml files.

When I write my codes, I have dependencies on those hbm.xml files within the jar files.

How can I include those hbm.xml files within the jars into my build scripts so hbm2java can find those dependencies? I don't want to unpack the jar files to extract the hbm.xml files because hbm2java will generate the java files again.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 11, 2006 12:11 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
use <mapping> elements in your hibernate.cfg.xml

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.