Uploaded image for project: 'Hibernate ORM'
  1. HHH-8087

Envers delete doesn't insert a new row with revtype=2 for unidirectional manytomany collections

    Details

    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      When I create a unidirectional many to many relationship for audited entities with join table, It only does insert on the join table with revtype=INSERT, but not revtype=DELETE when I delete the object or replace the collection with a new one.

      @ManyToMany
      @JoinTable(
      name="test_assoc",
      joinColumns = @JoinColumn( name="id_test"),
      inverseJoinColumns = @JoinColumn( name="id_assoc")
      )
      public List<Assoc> assocs;

      when it inserts, test_assoc_AUD gets insert revtype=0, but when it deletes, test_assoc_AUD doesn't gets insert revtype=2

        Attachments

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: