β’
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 λ©μλμ¬μΌ νλ€.