1 Reply Latest reply on Apr 28, 2011 12:25 PM by adamw

    Hibernate envers creates tables for collections - i want to disable this

    spotlight2001

      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 { 

      ... 

      }

       

      &lt;property name="org.hibernate.envers.revision_on_collection_change"&gt;true&lt;/property&gt;

       

      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