dev change sort user all files
Test Workflow / test (push) Successful in 5s

This commit is contained in:
vladp
2026-04-13 17:16:32 +07:00
parent b859b175f0
commit 40c9b2a796
4 changed files with 132 additions and 34 deletions
@@ -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) {