-->
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 script for generating mapping files for selective tables
PostPosted: Sat Jun 16, 2007 12:22 am 
Newbie

Joined: Fri Jun 15, 2007 7:16 am
Posts: 1
Hi,

I am trying to generate my mapping files for Oracle 9i database tables.
But right now it is generating for all the files. Below is the snippet
from my ant script

<taskdef name="hibernatetool"
classname="org.hibernate.tool.ant.HibernateToolTask"
classpathref="${classpath}"/>

<hibernatetool destdir="${build.dir}/da/model/">
<jdbcconfiguration propertyfile="${hib.prop}" /-->

<!-- CREATE HIBERNATE CFG FILE -->
<hbm2cfgxml/>
<!-- CREATE HIBERNATE MAPPING FILE FOR EACH TABLE IN THE DATABASE
-->
<hbm2hbmxml/>
<!-- CREATE THE JAVA CLASSES FOR THE TABLES IN THE DATABASE -->
<hbm2java/>
</hibernatetool>

Is there anyway that I can restrict the file generation to specific
tables. Any pointers would be of great help.

Thanks
ABC


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.