Search
Duplicate
โ˜•

what is JPA?

โ€ข
Java Persistence Architecture
โ€ข The JPA is a Java specification for accessing, persisting and managing data between Java objects, classes and relational databases.
โ€ข
์ž๋ฐ” ๊ฐ์ฒด, ํด๋ž˜์Šค, RDB ์‚ฌ์ด ๋ฐ์ดํ„ฐ์— ์ ‘๊ทผํ•˜๊ณ  ์˜์†ํ™”ํ•˜๊ณ  ๊ด€๋ฆฌํ•˜๊ธฐ ์œ„ํ•œ ์ž๋ฐ” ๋ช…์„ธ์ด๋‹ค.
โ€ข The JPA provides guidelines to develop an interface with certain standard levels.
โ€ข
์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ๊ฐœ๋ฐœํ•˜๊ธฐ ์œ„ํ•œ ๊ฐ€์ด๋“œ๋ผ์ธ์„ ์ œ๊ณตํ•œ๋‹ค.
โ€ข JPA is a specification and Hibernate is one of the implementations of JPA.
โ€ข
JPA ๋Š” ๋ช…์„ธ์ด๊ณ  ํ•˜์ด๋ฒ„๋„ค์ดํŠธ๋Š” JPA ๊ตฌํ˜„์ฒด ์ค‘ ํ•˜๋‚˜์ด๋‹ค.
โ€ข In Spring Boot it automatically enabled transaction management.
โ€ข
์Šคํ”„๋ง ๋ถ€ํŠธ์—์„œ๋Š” ์ž๋™์œผ๋กœ ํŠธ๋žœ์žญ์…˜ ๊ด€๋ฆฌ๊ฐ€ ๊ฐ€๋Šฅํ•˜๋‹ค.
โ€ข If this annotation is used in a method, it should be a public one.
โ€ข
@Transactional ์–ด๋…ธํ…Œ์ด์…˜์€ public ๋ฉ”์†Œ๋“œ์—ฌ์•ผ ํ•œ๋‹ค.