Skip to content

Commit

Permalink
feat: default deleted to false when the value is null
Browse files Browse the repository at this point in the history
OCD-4377
  • Loading branch information
Todd Young committed Nov 21, 2023
1 parent c3aff15 commit 96eabb0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ public LastModifiedUserStrategy getLastModifiedUserStrategy() {

@PrePersist
public void populateAuditInformationBeforeInsert() {
deleted = deleted != null ? deleted : true;
deleted = deleted != null ? deleted : false;
this.creationDate = new Date();
this.lastModifiedDate = new Date();
getLastModifiedUserStrategy().populationLastModifiedUser(this);
}

@PreUpdate
public void populateAuditInformationBeforeUpdate() {
deleted = deleted != null ? deleted : true;
deleted = deleted != null ? deleted : false;
this.lastModifiedDate = new Date();
getLastModifiedUserStrategy().populationLastModifiedUser(this);
}
Expand Down

0 comments on commit 96eabb0

Please sign in to comment.