From 57e390af9d0d29a675d956a149d5f6c60dccefde Mon Sep 17 00:00:00 2001 From: Zinzo Date: Tue, 9 Jan 2024 12:14:48 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20@PresistenceContext=EB=A5=BC=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1=EC=9E=90=20=EC=A3=BC=EC=9E=85=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/idiot/yesslave/global/jpa/QueryDslConfig.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/idiot/yesslave/global/jpa/QueryDslConfig.java b/src/main/java/org/idiot/yesslave/global/jpa/QueryDslConfig.java index daa1c71..bb4ec95 100644 --- a/src/main/java/org/idiot/yesslave/global/jpa/QueryDslConfig.java +++ b/src/main/java/org/idiot/yesslave/global/jpa/QueryDslConfig.java @@ -1,16 +1,16 @@ package org.idiot.yesslave.global.jpa; import com.querydsl.jpa.impl.JPAQueryFactory; +import javax.persistence.EntityManager; +import lombok.RequiredArgsConstructor; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -import javax.persistence.EntityManager; -import javax.persistence.PersistenceContext; - @Configuration +@RequiredArgsConstructor public class QueryDslConfig { - @PersistenceContext - private EntityManager entityManager; + + private final EntityManager entityManager; @Bean public JPAQueryFactory jpaQueryFactory() {