Search
β˜•

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 λ©”μ†Œλ“œμ—¬μ•Ό ν•œλ‹€.