I use
org.hibernate.tool.ant.EnversHibernateToolTask
to create tables for @Audited Tables.
f.e.:
@Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED)
class A {
@NotAudited
... Set<B> ...
}
class B {
...
}
<property name="org.hibernate.envers.revision_on_collection_change">true</property>
my hibernate config is in hbm.xml files
I want to have an audit table for entity A
I do NOT want to have an audit table for entity B
version:
3.5.6-Final
So only A has @Audited, but you get the audit tables generated for both?
Adam