JPA ๊ธฐ์ด์ ๋งคํ @Entity : JPA๊ฐ ๊ด๋ฆฌํ ๊ฐ์ฒด๋ผ๋๊ฒ์ ์๋ ค์ค๋๋ค(class ์์ ์ ์ธ) @Id : DB PK์ ๋งคํ ํ ํ๋๋ฅผ ์ง์นญํฉ๋๋ค(field ์์ ์ ์ธ) EntityManager EntityManagerFactory: application ๋ก๋ฉ ์์ ์ ๋ฑ ํ๋๋ง ์กด์ฌํด์ผํฉ๋๋ค. EntityManger: transaction ๋ง๋ค ์์ฑํด ์ฃผ์ด์ผ ํฉ๋๋ค. persistence.xml hibernate option ์ค์ ์ ์๋์ ๊ฐ์ด sql์ ๋ณด์ฌ์ฃผ๊ฒ ํ๋ ์ค์ ์ ๋๋ค. Hibernate: /* insert hellojpa.User */ insert into User (name, id) values (?, ?) ์ ๊ฐ๋ ์ฑ์ ์ํด ๋ค์ฌ์ฐ๊ธฐ ๋ฐ ์ค๋ฐ๊ฟ ๋ฑ์ ํด์ ๋ณด์ฌ์ฃผ๊ฒ ํ๋ ์ต์ ์ ๋๋ค. ์ ..