DATACMNS-840 - ReturnedType's need for custom construction no includes availability of input properties.

The indicator of whether custom construction is needed for a class based return type now includes whether input properties are available in the first place.
This commit is contained in:
Oliver Gierke
2016-04-08 18:50:57 +02:00
parent 5cfed9e003
commit 3ff31e5f89
2 changed files with 2 additions and 1 deletions

View File

@@ -262,7 +262,7 @@ public abstract class ReturnedType {
* @see org.springframework.data.repository.query.ResultFactory.ReturnedType#needsCustomConstruction()
*/
public boolean needsCustomConstruction() {
return isDto();
return isDto() && !inputProperties.isEmpty();
}
/*