spring boot : 3.3.4
hibernate : 6.5.3
jpa에 mysql full text scan 함수를 등록하려고 MySQL8Dialect를 구현받았는데 deprecate되어 다른방식으로 등록하는 방법을 찾아봤다.

- FunctionContributor 을 구현받는 클래스를 선언한다.
- 커스텀 함수를 선언한다.
- /src/main/resources에
META-INF/services/org.hibernate.boot.model.FunctionContributor 폴더를 만들어 준 후 FunctionContributor 를 구현은 클래스를 선언해주면 된다.



-
Repository

-
등록 전 jpa 쿼리 로그


참고 : https://aregall.tech/hibernate-6-custom-functions