Chapter 6. Generating schema with Ant

If you'd like to generate the database schema file with the Hibernate Tools Ant task,
you'll probably notice that the generated file doesn't contain definitions of audit
tables. To generate also the audit tables, you simply need to use
org.hibernate.tool.ant.EnversHibernateToolTask instead of the usual
org.hibernate.tool.ant.HibernateToolTask. The former class extends
the latter, and only adds generation of the version entities. So you can use the task
just as you used to.