I am using Hibernate 4.3.6, and I tried to use Envers functionality by adding @Audited annotation to one of my @Entity classes. (Envers jar - hibernate-envers-4.3.6.Final.jar - is on my CLASSPATH.)
When I run my code that works fine, retaining @Audited without annotation, I get org.hibernate.exception.SQLGrammarException:
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'dbname.REVINFO' doesn't exist
I do not see any documentation about creating the REVINFO table, so I assume that it will be created automatically, but this does not seem to happen. Did I miss something?
(If I create it manually, in accordance with the scheme described here - http://thinkinginsoftware.blogspot.co.il/2011/03/auditing-entities-with-hibernate-jpa.html - then I get an exception that * _AUD doesn't. I think I have the same question about all * _AUD tables.)
Thanks Reuven
source share