fix several bugs in findSingleAttibute (#980)

* add test case for distinct on id property

* suggested fix for "select distinct id"

* add test case for distinct with fetch

* FIX: .setDistinct(true) can be used in conjunction with fetch() now

* add test case for distinct with beans that have a disriminator column

* FIX: discriminator column is only read if also Id is read.

* fine tuned the test case

* added test cases for findSingleAttributeList without distinct

* improved fix to support also findSingleAttribute without distinct

* ADD: Bonus test case - assertion not yet verified
This commit is contained in:
Roland Praml authored and Rob Bygrave committed 2017-02-26 12:37:36 +13:00
1 parent 40ca179509
commit a46e086dc4
6 files changed
+171 -13

No files matched your search

@@ -440,7 +440,7 @@ public class OrmQueryDetail implements Serializable {
}
}
private boolean hasSelectClause() {
public boolean hasSelectClause() {
return baseProps.hasSelectClause();
}