Coffee with Thorben 2020-01-08 – DB Migration & Criteria SubQuery
Take your skills to the next level!
The Persistence Hub is the place to be for every Java developer. It gives you access to all my premium video courses, monthly Java Persistence News, monthly coding problems, and regular expert sessions.
to not miss any video.
Database Migration
You have various options to automate the creation and update of your database. You can use JPA’s schema generation feature or use version-based database migration tools, like Flyway and Liquibase. I explained all of them in great detail here on the blog. You can find links to all articles here: Database Migration.
Articles mentioned in the video:
- Standardized schema generation and data loading with JPA 2.1
- Version-Based Database Migration with Liquibase – Getting Started
- Version-Based Database Migration with Liquibase – Update an Existing Database
- How To Implement Automatic Database Updates By Integrating Liquibase
- Getting Started with Flyway and Version-Based Database Migration
- How to Use Java-based Migrations and Callbacks to Implement Complex Database Migrations With Flyway
Question of the Week
JPA Criteria for MAX id GROUP BY FOREIGN KEY in a ManyToMany relationship