You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
H2 데이터베이스 설치
h2.bat을 입력하여 실행member테이블 생성insert into member(name) values('spring')insert into member(name) values('spring2')select * from member를 통해 member 테이블에 있는 튜플을 볼 수 있다.순수 JDBC
스프링 통합 테스트
@Autowired기반으로 받는 것이 편리하다.스프링 JdbcTemplate
JPA
JPA는 기존의 반복 코드와 기본적인 SQL도 JPA가 직접 만들어서 실행해준다.
JPA를 사용하면, SQL과 데이터 중심의 설계에서 객체 중심의 설계로 패러다임을 전환할 수 있다.
JPA를 사용하면 개발 생산성을 크게 높일 수 있다.
build.gradle 파일에 JPA, h2 데이터베이스 관련 라이브러리 추가
스프링 데이터 JPA
Beta Was this translation helpful? Give feedback.
All reactions