Remove @Version from created since it should not be updated
This also works around DATAJPA-582
This commit is contained in:
parent
3e8c879cea
commit
4f936c4c51
|
@ -34,7 +34,6 @@ public class Message {
|
|||
@NotEmpty(message = "Summary is required.")
|
||||
private String summary;
|
||||
|
||||
@Version
|
||||
private Calendar created = Calendar.getInstance();
|
||||
|
||||
@OneToOne
|
||||
|
|
|
@ -22,7 +22,6 @@ public class Message {
|
|||
@NotEmpty(message = "Summary is required.")
|
||||
private String summary;
|
||||
|
||||
@Version
|
||||
private Calendar created = Calendar.getInstance();
|
||||
|
||||
public Long getId() {
|
||||
|
|
Loading…
Reference in New Issue