https://in.relation.to/2022/03/31/orm-60-final/
Hibernate 6.0 Final - In Relation To
It has been years in the making, but ORM 6.0 Final has finally been released! This announcement will discuss the major changes, as well as give insight into why certain choices were made. We will also be following up with a series of more focused posts tar
in.relation.to
하이버네이트(Hibernate) 6.0 Final 이 릴리즈됐다. 이번 버전 들어서면서 많은게 바뀌었다.
APIs and SPIs
Compatibility policy - Hibernate
Your application interacts with Hibernate libraries, and those in turn interact with third-party software: JDBC drivers, other libraries, or even REST APIs (Elasticsearch/OpenSearch). When any of these components changes its API, there is a risk that it be
hibernate.org
이러한 호환 같은걸 잘 보장하기 위해 SPI 가 수정되고 있고, 앞으로도 그럴 예정이다.
Jakarta Persistence
Read-by-position
Mapping Model
- support positional processing of attributes
- make it object-oriented
- make it user friendly
Semantic Query Model
HQL
Criteria
Criteria API 는 하이버네이트의 레거시였는데, 이번에 완벽히 제거됐다. 이전까지는 Deprecated 상태였다면 이번엔 정말로 작별하게 되었다. Criteria Query 는 Jakarta persistence API 를 통해서만 제공받을 수 있다.
Criteria -> HQL -> translated HQL 로 바꾸느라고 성능 저하가 있었는데 이제는 저 과정을 통해 생성되지않으므로 더 좋은 성능을 기대할 수 있다.
SQL as AST
Dialect initialization

Hibernate 6.0 이전 버전을 사용하다보면 같은 Dialect 인데 다양한 버전이 모두 있는 걸 확인할 수 있다. 6.0 부터는 사용중인 드라이버, 데이터베이스의 버전에 따라 Dialect 를 초기화할 수 있게 된다.
@Incubating
'개발' 카테고리의 다른 글
ZGC 에 대하여 (0) | 2023.06.20 |
---|---|
Scale-out 할 때 쓸만한 여러 컴포넌트들 (0) | 2022.04.20 |
'코드 리뷰의 정수'라는 글을 읽었다. (0) | 2022.04.03 |
요즘에도 DB 정규화가 중요해? (0) | 2022.03.15 |
「도메인 주도 설계 핵심 」을 읽고, 잘 모르겠다! (0) | 2021.10.16 |