Skip to content

Commit

Permalink
Task 15 : Revise BaseEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapter1990 committed Jun 29, 2024
1 parent 2846f59 commit fa1ad62
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,14 @@
@MappedSuperclass
@NoArgsConstructor
@AllArgsConstructor
public abstract class BaseDomainModel {
public abstract class BaseEntity {

@Column(name = "CREATED_AT")
private LocalDateTime createdAt;

@Column(name = "CREATED_BY")
private String createdBy;

@Column(name = "UPDATED_AT")
private LocalDateTime updatedAt;

@Column(name = "UPDATED_BY")
private String updatedBy;

@PrePersist
public void prePersist() {
this.createdAt = Optional.ofNullable(this.createdAt)
Expand Down

0 comments on commit fa1ad62

Please sign in to comment.