• 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Hibernate reverse engineering Ant script

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"/>
<hbm2cfgxml ejb3="false"/>
<copy todir="${classes.dir}/com/dataaccess/test">
<fileset dir="${src.dir}/com/dataaccess/test/">
<include name="*.xml"/>
<move file="${src.dir}/hibernate.cfg.xml" tofile="${src.dir}/hibernate.cfg.xml"/>
<jar compress="true" jarfile="${pub.dir}/${hibernateConfig.jar}">
<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}"/>
<fileset dir="${src.dir}">
<include name="hibernate.cfg.xml"/>
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic