As specified in the following link, Spring Boot 3.2.1 uses Hibenate 6.4.1.Final.
How can I override the hibernate.version
property of the Spring Boot with Gradle?
On the very same page you linked, a little further down (https://docs.spring.io/spring-boot/docs/3.2.1/reference/html/dependency-versions.html#appendix.dependency-versions.properties) you see that you'd need to set hibernate.version
There is as well a link to the build tool documentation which in https://docs.spring.io/spring-boot/docs/3.2.1/gradle-plugin/reference/htmlsingle/#managing-dependencies.dependency-management-plugin.customizing shows how to do this for gradle.