Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

RDB를 조작하는 언어인 SQL문을 JPA와 연관하여 SQL문을 함께 정리를하였습니다.

일반적인 SQL문이 JPA에서는 어떻게 표현이 되는지? 샘플화 하였습니다.


Code Link : http://git.webnori.com/projects/WEBF/repos/spring_jpa/browse/src/test/java/com/example/demo/jpa/JpaBasic.java

Expand
title목차 펼치기

Table of Contents

...

No Format
JPAQuery query = new JPAQuery(em);
QMember = member = Qmember.member;
List<Member> members = 
	query.from(member)
	.where(member.username.eq("Kim"))
	.list(member);



관련 샘플코드:

...