Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
B-hamza opened this issue May 9, 2021 · 1 comment
Labels
type: enhancement A general enhancement

Comments

@B-hamza
Copy link

B-hamza commented May 9, 2021

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.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 9, 2021
@schauder
Copy link
Contributor

Currently only a few types are supported for arrays, which we can map straight to database types.

We need to extend this to
a) consider Dialect specific conversions which will probably get introduced with the fix for #935
b) make the type determination used for the construction of arrays more robust.

@schauder schauder changed the title Couldn't determine JDBCType for class java.util.UUID Add support for java.util.UUID and types handled by custom conversions in arrays. May 10, 2021
@schauder schauder added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants