Skip to content

Commit

Permalink
added created at to review log (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
SundarakrishnanN authored Jun 11, 2024
1 parent f4bde4f commit 243dfe2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
import org.ieeervce.gatekeeper.dto.User.UserInternalDTO;
import org.ieeervce.gatekeeper.entity.StatusEnum;

import java.time.LocalDateTime;

public class ReviewLogDTO {
private UserInternalDTO user;
private StatusEnum status;
private String comments;
private LocalDateTime createdAt;

public UserInternalDTO getUser() {
return user;
Expand All @@ -31,4 +34,12 @@ public String getComments() {
public void setComments(String comments) {
this.comments = comments;
}

public LocalDateTime getCreatedAt() {
return createdAt;
}

public void setCreatedAt(LocalDateTime createdAt) {
this.createdAt = createdAt;
}
}
14 changes: 14 additions & 0 deletions src/main/java/org/ieeervce/gatekeeper/entity/ReviewLog.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.persistence.*;
import org.hibernate.annotations.CreationTimestamp;

import java.time.LocalDateTime;

@Entity
public class ReviewLog {
Expand All @@ -21,6 +24,9 @@ public class ReviewLog {
private StatusEnum status;
@Column(nullable = true)
private String comments;
@CreationTimestamp
@Column(nullable = false)
private LocalDateTime createdAt;

public Long getReviewLogId() {
return reviewLogId;
Expand Down Expand Up @@ -61,4 +67,12 @@ public String getComments() {
public void setComments(String comments) {
this.comments = comments;
}

public LocalDateTime getCreatedAt() {
return createdAt;
}

public void setCreatedAt(LocalDateTime createdAt) {
this.createdAt = createdAt;
}
}

0 comments on commit 243dfe2

Please sign in to comment.