Skip to content

Commit

Permalink
feat: Add QuerydslConfig (#2)
Browse files Browse the repository at this point in the history
Co-authored-by: nusuy <[email protected]>
Co-authored-by: Queue-ri <[email protected]>
Co-authored-by: hyojeongchoi <[email protected]>
  • Loading branch information
4 people committed Dec 3, 2023
1 parent 165e35c commit 27d98cb
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.hamahama.pupmory.conf;

import com.querydsl.jpa.impl.JPAQueryFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

@Configuration
public class QuerydslConfig {

@PersistenceContext
private EntityManager entityManager;

@Bean
public JPAQueryFactory jpaQueryFactory() {
return new JPAQueryFactory(entityManager);
}
}

0 comments on commit 27d98cb

Please sign in to comment.