#1023 - Bug with findSingleAttributeList() when used against @ManyToOne / foreign key

This commit is contained in:
rob bygrave
2017-05-11 23:20:19 +12:00
parent 951e517caf
commit 711701932a
7 changed files with 54 additions and 14 deletions
@@ -54,7 +54,7 @@ class CQueryFetchSingleAttribute {
private int rowCount;
private final ScalarType<Object> scalarType;
private final ScalarType<?> scalarType;
/**
* Create the Sql select based on the request.
@@ -65,7 +65,7 @@ class CQueryFetchSingleAttribute {
this.sql = plan.getSql();
this.desc = request.getBeanDescriptor();
this.predicates = predicates;
this.scalarType = plan.getSingleProperty().getScalarType();
this.scalarType = plan.getSingleAttributeScalarType();
query.setGeneratedSql(sql);
}