When it comes to object-relational mapping (ORM), this Spring 5 framework supports Hibernate 5 with easy configuration through the context of Spring Boot 2.0 methodologies. This first recipe will be about applying Hibernate object-relational mapping to a MySQL data source using the HikariCP data pooling mechanism.
Let us integrate Hibernate 5 to the Spring 5 application using the following steps:
- Convert the Maven project
ch12-hiber
to a Spring Boot application by adding the following Spring Boot 2.0.0.M2 starter POM dependencies, such aswebflux
,actuator
, and JDBC, with some support plugins such as the MySQL connector. - Hibernate 5 has no dedicated starter POM in Spring Boot 2.0, but it is by default contained in the Spring Data JPA starter POM. Since adding the ORM framework is covered by the Spring MVC module, it is mandatory to include...