-->
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: Ant hibernate tool task: multiple paths
PostPosted: Fri Jun 12, 2009 4:36 am 
Newbie

Joined: Fri Jun 12, 2009 3:50 am
Posts: 2
Hi

I observe problems when I generate the DDL-script for entities, which are located in several class-folders. I do have the following ant script:
Code:
      <hibernatetool destdir=".">
         <jpaconfiguration persistenceunit="MySQL_PU" />
         <classpath>
            <path location="${basedir}/bin" />
            <path location="${basedir}/../RevisionEntity/bin"/>
         </classpath>
         <hbm2ddl drop="true"
                 create="true"
                 export="false"
                 outputfilename="versioning-ddl.sql"
                 delimiter=";"
                 format="true" />
      </hibernatetool>

the created ddl-script just contains the tables for the first entry ("<path location="${basedir}/bin" />"). If I change to order of the two path entries in "classpath" node, then only the tables for "<path location="${basedir}/../RevisionEntity/bin"/>" are created.

Is there something wrong with my configuration of the hibernatetool-task? Can somebody helmp me?

Thanks in advance
Hansjoerg


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.