Fix tests failing when switching to MySQL

Description

There are lots of tests failing on MySQL. We need to fix those so that we can identify if there is a real issue underneath.

hibernate-core:

Environment

None

Assignee

Vlad Mihalcea

Reporter

Vlad Mihalcea

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Priority

Major
Configure