Mysql
 SQL >> Database >  >> RDS >> Mysql

FindByUUID() con Spring Data JPA Repository

Prova ad annotare la proprietà UUID con @org.hibernate.annotations.Type(type="org.hibernate.type.UUIDCharType") oppure @org.hibernate.annotations.Type(type="org.hibernate.type.UUIDBinaryType").

Un problema simile può nascere da uno swap MSB/LSB negli UUID binari; in tal caso conviene trattare il dato come String e convertire prima.