From 0e75c50be5b7c73399aaf155159891c0a24ebc0f Mon Sep 17 00:00:00 2001 From: rob bygrave Date: Mon, 24 Sep 2018 22:30:45 +1200 Subject: [PATCH] #1487 - @OneToOne Postgres with different Id types - error PSQLException: ERROR: operator does not exist: uuid = character varying Fix --- .../ebeaninternal/server/deploy/BeanPropertyAssocOne.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/io/ebeaninternal/server/deploy/BeanPropertyAssocOne.java b/src/main/java/io/ebeaninternal/server/deploy/BeanPropertyAssocOne.java index 8f8e3b66e..bd3455d90 100644 --- a/src/main/java/io/ebeaninternal/server/deploy/BeanPropertyAssocOne.java +++ b/src/main/java/io/ebeaninternal/server/deploy/BeanPropertyAssocOne.java @@ -261,7 +261,7 @@ public class BeanPropertyAssocOne extends BeanPropertyAssoc implements STr private List findIdsByParentIdList(List parentIds, Transaction t) { String rawWhere = deriveWhereParentIdSql(true); - String inClause = targetIdBinder.getIdInValueExpr(false, parentIds.size()); + String inClause = getIdBinder().getIdInValueExpr(false, parentIds.size()); String expr = rawWhere + inClause; SpiEbeanServer server = server(); @@ -537,8 +537,7 @@ public class BeanPropertyAssocOne extends BeanPropertyAssoc implements STr BeanProperty[] emIds = targetDesc.propertiesBaseScalar(); try { for (BeanProperty emId : emIds) { - ExportedProperty expProp = findMatch(true, emId); - list.add(expProp); + list.add(findMatch(true, emId)); } } catch (PersistenceException e) { // not found as individual scalar properties @@ -547,8 +546,7 @@ public class BeanPropertyAssocOne extends BeanPropertyAssoc implements STr } else { if (idProp != null) { - ExportedProperty expProp = findMatch(false, idProp); - list.add(expProp); + list.add(findMatch(false, idProp)); } }