See https://in.relation.to/2022/03/31/orm-60-final/ and https://docs.jboss.org/hibernate/orm/6.0/migration-guide/migration-guide.html.