• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Hibernate reverse engineering Ant script

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any one helps me to create the reverse engineering build script for Oracle tables with separate package for group of tables using ANT script.

Below mentioned Ant script is generating hbm and POJO classes for one set of tables (in one package), where do I need to change the script to create a separate package for more than one set of tables.

------------------------------------------------------------------
<target name="testjava" depends="init" description="generate hibernate POJO, ADO and schema help files from database schema">
<taskdef name="hibernateTool" classname="org.hibernate.tool.ant.HibernateToolTask" classpathref="class.prod.path"/>
<hibernateTool destdir="${src.dir}">
<jdbcconfiguration configurationfile="hibernate.cfg.xml" packagename="${package.name}" revengfile=" hibernate.reveng.xml"/>
<hbm2java jdk5="false" ejb3="false"/>
<hbm2hbmxml/>
<hbm2cfgxml ejb3="false"/>
</hibernateTool>
<copy todir="${classes.dir}/com/dataaccess/test">
<fileset dir="${src.dir}/com/dataaccess/test/">
<include name="*.xml"/>
</fileset>
</copy>
<move file="${src.dir}/hibernate.cfg.xml" tofile="${src.dir}/hibernate.cfg.xml"/>
<jar compress="true" jarfile="${pub.dir}/${hibernateConfig.jar}">
<manifest>
<attribute name="Created-By" value="${projectName} development team, ${TODAY}"/>
<attribute name="Implementation-Version" value="${targetVersion}"/>
<attribute name="Implementation-Title" value="${manifest.title}"/>
<attribute name="Implementation-Vendor" value="${manifest.vendor}"/>
<attribute name="Class-Path" value="${manifest.class.path}"/>
</manifest>
<fileset dir="${src.dir}">
<include name="hibernate.cfg.xml"/>
</fileset>
</jar>
</target>
----------------------------------------------------------------------
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic