Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
JPA 프로그래밍 (2)
https://www.facebook.com/groups/itbook4u/ (최성훈)
목차
- Query String VS JPA
https://www.facebook.com/groups/itbook4u/ (최성훈)
Query String VS JPA
JAVA Query String JDBC API DataBase
JAVA JPA JDBC API DataBase
https://www.facebook.com/groups/itbook4...
Query String VS JPA
Query String
JPA
INSERT INTO MEMBER (MEMBER_ID, NAME) VALUES (?, ?)
jpa.persist(member)
MEMBER
MEMBER_...
Query String VS JPA
Query String
JPA
UPDATE MEMBER SET AGE=?, NAME=? WHERE MEMBER_ID=?
member.setAge(20);
member.setName(“...
Query String VS JPA
Query String
JPA
DELETE FROM MEMBER WHERE MEMBER_ID=?
jpa.remove(member);
https://www.facebook.com/gro...
Query String VS JPA
Query String
JPA
SELECT NAME, AGE FROM MEMBER WHERE MEMBER_ID = ?
Member member = jpa.find(Member.clas...
ALBUM
ITEM_ID(PK,FK)
ARTIST
INSERT INTO ITEM (ITEM_ID, NAME, PRICE) VALUES (?, ?, ?)
INSERT INTO ALBUM (ARTIST) VALUES (?)...
Query String VS JPA
Query String
JPA
SELECT M.MEMBER_ID, M.NAME, M.TEL, T.TEAM_ID, T.TEAM_NAME
FROM MEMBER M JOIN TEAM T
O...
Query String VS JPA
Query String
JPA
SELECT M.*, T.* FROM MEMBER M JOIN TEAM T ON M.TEAM_ID = T.TEAM_ID
memberDao.getOrder...
잊지 않으셨죠?
https://www.facebook.com/groups/itbook4u/
가입하시고…
https://medium.com/@oopchoi/jpa-%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9...
감사합니다.
JPA는 사랑입니다~^^;;
https://www.facebook.com/groups/itbook4u/ (최성훈)
Upcoming SlideShare
Loading in …5
×

Jpa 프로그래밍 (2)

815 views

Published on

JPA 스터디 홍보용

Published in: Internet

Jpa 프로그래밍 (2)

  1. 1. JPA 프로그래밍 (2) https://www.facebook.com/groups/itbook4u/ (최성훈)
  2. 2. 목차 - Query String VS JPA https://www.facebook.com/groups/itbook4u/ (최성훈)
  3. 3. Query String VS JPA JAVA Query String JDBC API DataBase JAVA JPA JDBC API DataBase https://www.facebook.com/groups/itbook4u/ (최성훈)
  4. 4. Query String VS JPA Query String JPA INSERT INTO MEMBER (MEMBER_ID, NAME) VALUES (?, ?) jpa.persist(member) MEMBER MEMBER_ID(PK) NAME https://www.facebook.com/groups/itbook4u/ (최성훈)
  5. 5. Query String VS JPA Query String JPA UPDATE MEMBER SET AGE=?, NAME=? WHERE MEMBER_ID=? member.setAge(20); member.setName(“최성훈”); MEMBER MEMBER_ID(PK) NAME AGE https://www.facebook.com/groups/itbook4u/ (최성훈)
  6. 6. Query String VS JPA Query String JPA DELETE FROM MEMBER WHERE MEMBER_ID=? jpa.remove(member); https://www.facebook.com/groups/itbook4u/ (최성훈)
  7. 7. Query String VS JPA Query String JPA SELECT NAME, AGE FROM MEMBER WHERE MEMBER_ID = ? Member member = jpa.find(Member.class, memberId) https://www.facebook.com/groups/itbook4u/ (최성훈)
  8. 8. ALBUM ITEM_ID(PK,FK) ARTIST INSERT INTO ITEM (ITEM_ID, NAME, PRICE) VALUES (?, ?, ?) INSERT INTO ALBUM (ARTIST) VALUES (?) Query String VS JPA Query String JPA jpa.persist(album); Album album = jpa.find(Album.class, albumId); ITEM ITEM_ID NAME PRICE DTYPE https://www.facebook.com/groups/itbook4u/ (최성훈)
  9. 9. Query String VS JPA Query String JPA SELECT M.MEMBER_ID, M.NAME, M.TEL, T.TEAM_ID, T.TEAM_NAME FROM MEMBER M JOIN TEAM T ON M.TEAM_ID = T.TEAM_ID Member member = jpa.find(Member.class, memberId); Team team = member.getTeam(); //Team newTeam = new Team(); //member.setTeam(newTeam); TEAM TEAM_ID(PK) TEAM_NAME MEMBER MEMBER_ID(PK) TEAM_ID(FK) NAME TEL https://www.facebook.com/groups/itbook4u/ (최성훈)
  10. 10. Query String VS JPA Query String JPA SELECT M.*, T.* FROM MEMBER M JOIN TEAM T ON M.TEAM_ID = T.TEAM_ID memberDao.getOrder(); // null Member member = jpa.find(Member.class, memberId); member.getOrder().getOrderItem(); // OrderItem Member Team Order OrderItem https://www.facebook.com/groups/itbook4u/ (최성훈)
  11. 11. 잊지 않으셨죠? https://www.facebook.com/groups/itbook4u/ 가입하시고… https://medium.com/@oopchoi/jpa-%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D- fc443b647ec8 여기 한번 살짝 들리시고.. http://www.yes24.com/24/goods/19040233 책을 구매하신 다음에… https://www.facebook.com/groups/jpastudy/ 여기 스터디 그룹 조인하셔서 열공 하시면 됩니다.. https://www.facebook.com/groups/itbook4u/ (최성훈)
  12. 12. 감사합니다. JPA는 사랑입니다~^^;; https://www.facebook.com/groups/itbook4u/ (최성훈)

×