5 Replies Latest reply on Oct 1, 2009 11:40 AM by Adam Warski

    joined-subclass audit

    Vitaliy Gorodchuck Newbie

      Hi Adam,
      I have problem with Envers.
      When i have for example next mapping:

      class name="Contact" table="contact">

      <joined-subclass name="User" table="user">
      <key column="user_id" not-null="true"/>

      contact pk is contact_id
      user pk is user_id
      And when i add Audit and try to insert or update user generated audit save sql is next:
      (..., contact_id, REV)
      (..., ?, ?)

      user_AUD is copy of user and do not has contact_id ....