diff --git a/samples/data-jc/src/main/java/samples/data/Message.java b/samples/data-jc/src/main/java/samples/data/Message.java index 05a8be43aa..307efd0bd6 100644 --- a/samples/data-jc/src/main/java/samples/data/Message.java +++ b/samples/data-jc/src/main/java/samples/data/Message.java @@ -34,7 +34,6 @@ public class Message { @NotEmpty(message = "Summary is required.") private String summary; - @Version private Calendar created = Calendar.getInstance(); @OneToOne diff --git a/samples/messages-jc/src/main/java/org/springframework/security/samples/data/Message.java b/samples/messages-jc/src/main/java/org/springframework/security/samples/data/Message.java index 0a6eba1813..2e31d2841c 100644 --- a/samples/messages-jc/src/main/java/org/springframework/security/samples/data/Message.java +++ b/samples/messages-jc/src/main/java/org/springframework/security/samples/data/Message.java @@ -22,7 +22,6 @@ public class Message { @NotEmpty(message = "Summary is required.") private String summary; - @Version private Calendar created = Calendar.getInstance(); public Long getId() {