Skip to content

[1장] JPA 소개 #1

Description

@iyoungman

SQL 문제

  • 진정한 계층 분할 어렵다
  • 엔티티 신뢰X
  • SQL 의존적인 개발

패러다임의 불일치

  • 객체와 관계형 DB 차이점
  1. 상속
  2. 연관관계
    • 단방향, 양방향

JPA 소개

  • 패러다임 불일치 해결

마이바티스, JdbcTemplate 와 차이점?

  • 둘은 SQL 매퍼

  • 객체와 SQL 을 매핑하는 역할

    • 따라서 SQL을 객체와 매핑하는 역할은 얘네들이 해준다.
  • 하지만 SQL 을 직접 작성해야하므로 SQL 의존적인 개발은 그대로이다.

  • JPA는 SQL 매핑 + SQL 을 알아서 만들어주므로, SQL 의존적인 개발도 피할 수 있다.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions