diff --git a/DaoCore/src/main/java/de/greenrobot/dao/query/QueryBuilder.java b/DaoCore/src/main/java/de/greenrobot/dao/query/QueryBuilder.java index e6c15ec67..26aeb7e37 100644 --- a/DaoCore/src/main/java/de/greenrobot/dao/query/QueryBuilder.java +++ b/DaoCore/src/main/java/de/greenrobot/dao/query/QueryBuilder.java @@ -153,7 +153,7 @@ public Join join(Property sourceProperty, Class destinationEntityCl * as the source for the new join to add. In this way, it is possible to compose complex "join of joins" across * several entities if required. */ - public Join join(Join sourceJoin, Property sourceProperty, Class destinationEntityClass, + public Join join(Join sourceJoin, Property sourceProperty, Class destinationEntityClass, Property destinationProperty) { AbstractDao destinationDao = (AbstractDao) dao.getSession().getDao(destinationEntityClass); return addJoin(sourceJoin.tablePrefix, sourceProperty, destinationDao, destinationProperty);