-->
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: Can hibernatetool pick up hbm.xml files from a jar?
PostPosted: Thu Oct 02, 2008 12:21 pm 
Regular
Regular

Joined: Sun Sep 25, 2005 11:35 pm
Posts: 57
I am using Hibernate Tool to output the ddl for my project. The following call in my ant build script works perfectly fine for the hibernate mapping files in my source code. Now in addition to these mapping files I need to pick up the mapping files packaged in the jBPM jar (because I want the jBPM tables as part of my schema). Can this be done?

Code:
<hibernatetool destdir="${basedir}">
   <classpath path="${mylib}" />
   <configuration propertyfile="${basedir}/hibernate.properties">
      <fileset dir="${my-hbm.dir}">
         <include name="**/*.hbm.xml"/>
      </fileset>
   </configuration>
   <hbm2ddl export="false" outputfilename="create-schema.sql" format="true"/>
</hibernatetool>


Thanks.
Naresh


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.