Ignoring the createdAt, updatedAt and version fields in BaseDomain object.
This is because the client sends us the complete document as is. This causes conflicts in MongoDB for versioning and java Instant deserialization.
This commit is contained in:
parent
f1b783f6c1
commit
15cbd266b3
|
|
@ -25,10 +25,12 @@ public abstract class BaseDomain implements Persistable<String> {
|
|||
@Id
|
||||
private String id;
|
||||
|
||||
@JsonIgnore
|
||||
@Indexed
|
||||
@CreatedDate
|
||||
protected Instant createdAt;
|
||||
|
||||
@JsonIgnore
|
||||
@LastModifiedDate
|
||||
protected Instant updatedAt;
|
||||
|
||||
|
|
@ -40,6 +42,7 @@ public abstract class BaseDomain implements Persistable<String> {
|
|||
|
||||
protected Boolean deleted = false;
|
||||
|
||||
@JsonIgnore
|
||||
@Version
|
||||
protected Long documentVersion;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user