spring-data-relational icon indicating copy to clipboard operation
spring-data-relational copied to clipboard

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

Open B-hamza opened this issue 4 years ago • 1 comments

When using List<UUID> 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.

B-hamza avatar May 09 '21 20:05 B-hamza

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 avatar May 10 '21 14:05 schauder