EntityManager.find() broken for MySQL and UUID

Description

When using H2 I've no problems with attributes like this:

However, after switching to MySQL, I observed the following:

  • The generated column type is BINARY(255)

  • The generated WHERE clause for EntityManager.find(Class, UUID) is, e.g.:

WHERE id = '12345678-1234-1234-1234-123456789012' instead of
WHERE id = '12345678123412341234123456789012', i.e. without -

I also tried to replace Hibernate 5.0.7 inside WildFly by 5.1.0 and 5.0.8, but got the same issue.

Environment

MySQL 5.7.11
WildFly 10.0.0.Final

Assignee

Unassigned

Reporter

Juergen Zimmermann

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure