Cannot assign UUID type to Java POJO classes

I want to achieve the following in the Hibernate ORM mapping:

And the following in the POJO classes:

private java.util.UUID id;

I have created a ORM ID Generator (UUIDIdentifierGenerator) which creates a random UUID, a ORM User Type (UUIDBinaryUserType) which creates a varbinary(16) representation of UUID.

I’m having two problems:
- I cannot get type="…UUIDBinaryUserType" in the orm mapping file.
- I cannot get java.util.UUID to appear in the POJO file.