Refactoring
This commit is contained in:
@@ -37,7 +37,6 @@ public abstract class BaseEntity {
|
||||
protected void onCreate() {
|
||||
this.createdAt = LocalDateTime.now();
|
||||
this.updatedAt = LocalDateTime.now();
|
||||
System.out.println("[LOG] Nouvelle entité créée avec ID : " + this.id + " à " + this.createdAt);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -47,6 +46,5 @@ public abstract class BaseEntity {
|
||||
@PreUpdate
|
||||
protected void onUpdate() {
|
||||
this.updatedAt = LocalDateTime.now();
|
||||
System.out.println("[LOG] Entité mise à jour avec ID : " + this.id + " à " + this.updatedAt);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user