This commit is contained in:
@@ -6,8 +6,10 @@ import lombok.*;
|
||||
import org.springframework.data.annotation.CreatedDate;
|
||||
import org.springframework.data.annotation.LastModifiedDate;
|
||||
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
|
||||
import ru.soune.nocopy.entity.monitoring.FileMonitoringEntity;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
@Data
|
||||
@@ -94,6 +96,10 @@ public class FileEntity {
|
||||
@JsonIgnore
|
||||
private ImageHashEntity imageHash;
|
||||
|
||||
@OneToMany(mappedBy = "file", fetch = FetchType.LAZY)
|
||||
@JsonIgnore
|
||||
private List<FileMonitoringEntity> monitorings;
|
||||
|
||||
@PrePersist
|
||||
public void prePersist() {
|
||||
if (this.supportId == null) {
|
||||
|
||||
Reference in New Issue
Block a user