We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa52a78 commit 129786cCopy full SHA for 129786c
back/src/main/java/com/back/global/config/JpaConfig.java
@@ -0,0 +1,14 @@
1
+package com.back.global.config;
2
+
3
+import com.querydsl.jpa.impl.JPAQueryFactory;
4
+import jakarta.persistence.EntityManager;
5
+import org.springframework.context.annotation.Bean;
6
+import org.springframework.context.annotation.Configuration;
7
8
+@Configuration
9
+public class JpaConfig {
10
+ @Bean
11
+ public JPAQueryFactory jpaQueryFactory(EntityManager em) {
12
+ return new JPAQueryFactory(em);
13
+ }
14
+}
0 commit comments