3 Replies Latest reply on Dec 31, 2008 7:40 AM by Adam Warski

    Quick question; will @Versioned also version collection mapp

    Chris Simons Expert


      Adam, et. Al,

      If I specify @Versioned on an entity, will Envers automatically try to version a collection of objects, such as ManyToMany?

      If so, can I use @Unversioned on these collections to explicity not version the collection itself?

      Let's say I have a User with a ManyToMany to Role.

      Can I @Versioned User and Role, but @Unversioned the collection? Thereby, changes to User are versioned, and changes to Role are versioned, but not the mappings themselves?

      Thanks.