1 Reply Latest reply on Apr 15, 2009 2:39 PM by Adam Warski

    @Where or WHERE in mapping disregarded

    Amar Singh Newbie

      It seems like envers is disregarding the @Where clause or "WHERE" defined in the properties:

      <bag name="fac" inverse="true" where="PARENT_FUI_ID IS NULL" cascade="all-delete-orphan" batch-size="64" >
       <key column="POS_ID"/>
       <one-to-many class="XYZ"/>
      </bag>
      


      When such an audited object is retrieved Envers doesn't apply the restriction defined in "where".

      Thanks Adam.