package org.springframework.support;

import org.springframework.versions.AncestorRootId;
import org.springframework.versions.SuccessorId;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
public class TestEntityVersioned {
    @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id;

    // these are required to satisfy the
    @AncestorRootId private String ancestralRootId;
    @SuccessorId private String successorId;
}

@@ -35,110 +35,8 @@
 t;%0A%0A
-import org.springframework.versions.AncestorRootId;%0Aimport org.springframework.versions.SuccessorId;%0A%0A
 impo
@@ -176,16 +176,166 @@
 ce.Id;%0A%0A
+import org.springframework.versions.AncestorId;%0Aimport org.springframework.versions.AncestorRootId;%0Aimport org.springframework.versions.SuccessorId;%0A%0A
 @Entity%0A
@@ -536,16 +536,59 @@
 RootId;%0A
+    @AncestorId private String ancestorId;%0A
     @Suc

Make test entities for versioned repositories implement an ancestorId field