Chapter 9. Migration Case Study: Spring and Hibernate
Chapter 8 presented all the available tools for migrating applications to modules. This chapter brings everything together in a case study. Weâll migrate a fully functional application that uses Spring and Hibernate to modules. Note that weâre deliberately using an example of âtraditionalâ Spring/Hibernate development, instead of using the most modern way of doing things. Weâre using pre-Java 9 versions, to create an interesting case study. Many applications have been written this way, which makes it extra interesting to see how these applications can be migrated toward the future. Newer versions of frameworks will support Java 9 better out of the box, and migrations based on these versions will probably be even easier. If you are not familiar with these frameworks, donât worry. You donât have to understand all the code and configuration to learn about common problems you may face during a migration toward modules.
You will get a lot more value out of this chapter if you check out the code repository and try to migrate the code while youâre reading the chapter. In the code repository, we have provided three versions:
- chapter9/spring-hibernate-starter
-
The classpath version of the application before migration.
- chapter9/spring-hibernate
-
The migrated application.
- chapter9/spring-hibernate-refactored
-
The migrated application after additional modularization.
We recommend opening the spring-hibernate-starter ...
Get Java 9 Modularity now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.