QueryDSL sql and UUID type
I am using QueryDSL SQL with PostgresTemplates
and I am trying to include the UUID parameter in a query, but when I execute this query:
UUID uuid = UUID.randomUUID();
QOrganization org = QOrganization.organization;
long count = new SQLQuery(connection, configuration)
.from(org)
.where(org.id.eq(uuid))
.count();
The database complains:
org.postgresql.util.PSQLException: there is no operator does not exist: uuid = character varying
How can I explicitly specify my UUID parameter?
+3
source to share