@@ -34,6 +34,11 @@ public class ViolationNotion {
|
||||
@JsonIgnore
|
||||
private FileEntity file;
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "violation_id", nullable = false)
|
||||
@JsonIgnore
|
||||
private Violation violation;
|
||||
|
||||
@CreatedDate
|
||||
@Column(name = "created_at", updatable = false, nullable = false)
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
Reference in New Issue
Block a user