1 Reply Latest reply on May 3, 2009 11:34 AM by Adam Warski

    @ManyToOne composition

    Tom Goring Apprentice

      Hi,

      I have a Person entity with ManyToOne with an Address entity.
      I have eager fetch and cascade all on the address (composition relationship).

      I was hoping that when I persist a Person and nothing has changed except for fields on the address I would get a Audit version of the Person pointing at the updated address.

      However envers does not seem allow for that.

      Is there a way to go about this ?

      Thanks

      Tom

        • 1. Re: @ManyToOne composition
          Adam Warski Master

          Hello,

          I don't quite understand your problem ... if you update an Address related to a Person, then a new revision is created (let's say its number is N). If you then read the Person as revision N-1, and navigate to Address, you'll get the old address, not the new one.

          Adam