Skip to content

Instantly share code, notes, and snippets.

@sudarshan-webonise
Created August 5, 2015 11:30
Show Gist options
  • Save sudarshan-webonise/db28e46673c5b5c89b44 to your computer and use it in GitHub Desktop.
Save sudarshan-webonise/db28e46673c5b5c89b44 to your computer and use it in GitHub Desktop.
task hbm2java {
group = "hbm2java"
ant.taskdef { name ="hibernatetool"
classname="org.hibernate.tool.ant.HibernateToolTask"
classpathref="toolslib"
}
ant.hibernatetool{
destdir="/src/main/java/"
configuration {
configurationfile="hibernate.cfg.xml"
}
hbm2java
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment