|
|
|
|
@ -7,6 +7,7 @@ import jakarta.persistence.metamodel.Attribute;
|
|
|
|
|
import jakarta.persistence.metamodel.EntityType;
|
|
|
|
|
import jakarta.persistence.metamodel.Metamodel;
|
|
|
|
|
import kr.re.etri.autoflow.entity.MinioAttachmentEntity;
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.data.jpa.domain.Specification;
|
|
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
@ -17,16 +18,14 @@ import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
@Slf4j
|
|
|
|
|
@Component
|
|
|
|
|
@RequiredArgsConstructor
|
|
|
|
|
|
|
|
|
|
public class MinioAttachmentSpecification {
|
|
|
|
|
|
|
|
|
|
private final EntityManager entityManager;
|
|
|
|
|
|
|
|
|
|
private Set<String> stringFields;
|
|
|
|
|
|
|
|
|
|
public MinioAttachmentSpecification(EntityManager entityManager) {
|
|
|
|
|
this.entityManager = entityManager;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostConstruct
|
|
|
|
|
public void init() {
|
|
|
|
|
Metamodel metamodel = entityManager.getMetamodel();
|
|
|
|
|
|