It would appear that Envers is treating the element of the collection as if it were an @Embeddable rather than an @Entity which has an identifier. It would definitely make more sense from a primary key perspective to include only the revision number column and the entity identifier columns. I'll need to look into the details and see if there are any unexpected side effects in doing that. |