Skip to content

Native query projection fails with PostgreSQL UUID [DATAJPA-1480] #1796

@spring-projects-issues

Description

@spring-projects-issues

Mickaël Tricot opened DATAJPA-1480 and commented

When a JPA entity contains a UUID field and is stored in PostgreSQL, native queries failed to project that field:

org.springframework.orm.jpa.JpaSystemException: No Dialect mapping for JDBC type: 1111; nested exception is org.hibernate.MappingException: No Dialect mapping for JDBC type: 1111

I have created a reproduction project with tests that:

  • succeeds without projection
  • succeeds with the projection of a string field
  • fails with projection of a UUID field

 


Affects: 2.1.3 (Lovelace SR3)

Reference URL: https://github.com/mickaeltr/spring-data-jpa-bug-with-native-query-uuid-projection

Metadata

Metadata

Assignees

Labels

status: declinedA suggestion or change that we don't feel we should currently applytype: bugA general bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions