]
Lukasz Antoniak commented on HHH-7106:
--------------------------------------
OK, I think I got your point and will add a note about creating audit tables in the
"15.1. Basics" section of Envers chapter. Thanks for reporting this issue.
Documentation doesnt explain how to create audited tables
---------------------------------------------------------
Key: HHH-7106
URL:
https://hibernate.onjira.com/browse/HHH-7106
Project: Hibernate ORM
Issue Type: Bug
Components: envers
Affects Versions: 4.0.1
Reporter: Paul Taylor
The documentation doesnt explain how to create audited tables, it implies by just putting
evers on your classpath (and creating event listeners on versions of hibernate earlier
than 4) it will just work but it doesn't. To get it to work I add to add
config.setProperty(Environment.HBM2DDL_AUTO, "create-drop");
to my configuration, without this a call to
new SchemaExport(config).create(true, true);
would not create the audited tables.
Even now I'm not sure this is the correct way to do things but it is the only thing
I've got to work. Although you might think this an unimportant issue because it is
only documentation you would underestimate how difficult and fustrating it is to deleve
into a new project when the documentation is inadequate, it almost led to be abandoning
Envers.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: