1 Reply Latest reply on Feb 21, 2014 6:52 AM by sandhya rani

    Hibernate is reading DefaultAuditStrategy instead of ValidityAuditStrategy

    sandhya rani Newbie

      Hi All,

       

      I'm currently working on Hibernate-envers 4.1.9-Final.

      In hibernate configuration file i defined the following properties for audit strategy

               <property name="org.hibernate.envers.audit_strategy">org.hibernate.envers.strategy.ValidityAuditStrategy</property>

              <property name="org.hibernate.envers.audit_strategy_validity_store_revend_timestamp">true</property>

              <property name="org.hibernate.envers.audit_strategy_validity_end_rev_field_name">rev_end</property>

              <property name="org.hibernate.envers.audit_strategy_validity_revend_timestamp_field_name">rev_end_timestamp</property>

      and revision entity mapping file also defined but while saving data hibernate is using DefaultAuditStrategy and it is searching for default REVINFO table.

      Give me any suggestions why hibernate reading DefaultAuditStrategy...

       

      Thanks in advance