spring-projects / spring-projects/spring-data-relational

Add support for java.util.UUID and types handled by custom conversions in arrays.

Open
#973 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

type: enhancement
Dominant language
Java
Stars
827
Forks
394
PR merge metrics
No merged PRs in 30d

Description

When using List for postgres UUID ARRAY we got Couldn't determine JDBCType for class java.util.UUID
But when using only UUID works fine.

See test here.
Our demo model.

Does spring-data List support only primitive types ?
We also tried adding UUID to String converters, but it doesn't seem to work neither.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked DemoRepositoryTest.java and DemoUuidModel.java to reproduce the List PostgreSQL UUID ARRAY case. Trace how array element types and custom conversions are resolved, then add support for UUID and custom-converted types in arrays and verify both the reported case and existing scalar UUID behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, postgresql, spring
Domain
database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.