When I exclude old Hibernate Core (6.*) and manually add new Hibernate Core (7.0.2), then I get:
Caused by: java.lang.ClassNotFoundException: jakarta.persistence.PersistenceUnitTransactionType
which reminds me of the way I don’t want to go before asking.