From 61e767c4bff60b28cdb256948f958e2897150687 Mon Sep 17 00:00:00 2001 From: Chris Cranford Date: Mon, 13 Jun 2016 17:20:33 -0500 Subject: [PATCH] HHH-9128 - Correct documentation regarding EnversHibernateToolTask. --- .../userguide/chapters/envers/Envers.adoc | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/documentation/src/main/asciidoc/userguide/chapters/envers/Envers.adoc b/documentation/src/main/asciidoc/userguide/chapters/envers/Envers.adoc index 498d26d660..ad46497401 100644 --- a/documentation/src/main/asciidoc/userguide/chapters/envers/Envers.adoc +++ b/documentation/src/main/asciidoc/userguide/chapters/envers/Envers.adoc @@ -809,21 +809,20 @@ Your opinions on the subject are very welcome on the forum! :) [[envers-generateschema]] === Generating schema with Ant -If you 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 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, meaning you can use the task just as you are used to. +If you would like to generate the database schema file with the Hibernate Tools Ant task, you simply need to use the +`org.hibernate.tool.ant.HibernateToolTask` to do so. This task will generate the definitions of all entities, both of +which are audited by Envers and those which are not. For example: [source,xml] ---- - - - + + @@ -835,9 +834,10 @@ For example: drop="false" create="true" export="false" - outputfilename="versioning-ddl.sql" + outputfilename="entities-ddl.sql" delimiter=";" - format="true"/> + format="true" + /> ----