참고 공식문서Server PropertiesData Propertiesspring.jpa참고 configurationopen-in-view [참고]spring.jpa.properties.*spring.jpa.generate-ddlspring.jpa.hibernate.dialectDataMigration Propertiesspring.sql
참고 공식문서
Server Properties
Data Properties
spring.jpa
참고 configuration
open-in-view [참고]

- 컨트롤러와 뷰까지 영속성 상태를 유지하는 것
Register OpenEntityManagerInViewInterceptor. Binds a JPA EntityManager to the thread for the entire processing of the request.
- OSIV(Open Session In View)를 사용하게 되면 원하지 않는 상황에서 쿼리가 나갈 수 있기 때문에 주의해야함
- 보통은 entity는 Transactional 안에서만 관리하게 하고 그 외의 레이어에서는 DTO를 만들어서 관리하는 것이 좋음 ⇒ Service에서 반환할 때 entity를 반환하는 것이 아닌 entity의 id만을 반환하는 형태로. 혹은 dto를 반환
- 원치 않는 곳에서 엔티티의 조작이 일어나지 않도록(쿼리가 발생하지 않도록)
spring.jpa.properties.*
Hibernate Performance TuningAdditional native properties to set on the JPA provider(Jpa vendor etc. EclipseLink Hibernate)
spring.jpa.generate-ddl
Initialize a Database Using JPAspring.jpa.hibernate.dialect
- dialect는 JPA에서 쿼리 생성할 때 어떤 쿼리문으로 생성할 지를 정해주는 속성임