jpa querydsl1 Querydsl 실무 활용편 (1) 순수 JPA 와 Querydsl MemberJpaRepository @Repository @RequiredArgsConstructor public class MemberJpaRepository { private final EntityManager em; private final JPAQueryFactory queryFactory; public void save(Member member) { em.persist(member); } public Optional findById(Long id) { Member member = em.find(Member.class, id); return Optional.ofNullable(member); } public List findAll() { return em.creat.. 2021. 5. 2. 이전 1 다음