20 lines
518 B
Java
20 lines
518 B
Java
package com.kamco.cd.kamcoback.postgres;
|
|
|
|
import com.querydsl.jpa.impl.JPAQueryFactory;
|
|
import jakarta.persistence.EntityManager;
|
|
import lombok.RequiredArgsConstructor;
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
@RequiredArgsConstructor
|
|
@Configuration
|
|
public class QueryDslConfig {
|
|
|
|
private final EntityManager entityManager;
|
|
|
|
@Bean
|
|
public JPAQueryFactory jpaQueryFactory() {
|
|
return new JPAQueryFactory(entityManager);
|
|
}
|
|
}
|