We're updating the issue view to help you get more done. 

Cannot convert UUID types for native SQL in PostgreSQL: No Dialect mapping for JDBC type: 1111

Description

Cannot convert uuid data type to java.util.UUID for native queries. I created 2 test cases. entityFactory based queries can handle but sessionFactory based queries cannot convert.

For a workaround I created a custom dialect and registered the type.

1 2 3 4 5 public CustomPostgressDialect() { super(); this.registerHibernateType(1111, "pg-uuid"); }

I created a simple PR for dialect update.

Test Case:

Test case added:

Environment

None

Status

Assignee

Unassigned

Reporter

Fırat KÜÇÜK

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Components

Priority

Minor