This might also relate to: https://stackoverflow.com/questions/74708031/joincolumn-occurs-out-of-order-when-upgrading-to-spring-boot-3-hibernate-6