Project utilizes both hibernate-core and spring-orm.
Spring-orm v5.3 is claimed to be compatible with hibernate6 but when upgrading to Hibernate6 having compilation errors:
public class CustomHibernateJpaDialect extends HibernateJpaDialect {
private static final long serialVersionUID = 1L;
@Override
public Object beginTransaction(final EntityManager entityManager,
final TransactionDefinition definition)
throws PersistenceException, SQLException, TransactionException {
}
}
Entity manager required by method and PersistenceException thrown are from javax.persistance while hibernate6 was updated to utilize jakarta.persistance.
Thank you