querydsl 김영한 썸네일형 리스트형 JPQL 과 QueryDsl 기본 문법 JPQL vs Querydsl @Autowired EntityManager em; @Test public void startJPQL() throws Exception { //member1 find String qlString = "select m from Member m where m.username = :username"; Member findMember = em.createQuery(qlString, Member.class) .setParameter("username", "member1").getSingleResult(); assertThat(findMember.getUsername()).isEqualTo("member1"); } @Test public void startQuerydsl().. 더보기 이전 1 다음