gert-wijns / TypeSafeQueryBuilder

Compile time assistence while creating queries, making them more type safe and easier to refactor
6 stars 8 forks source link

ClassJoin using identifier path fails with ValueNotInScopeException #71

Closed gert-wijns closed 8 years ago

gert-wijns commented 8 years ago

Relation childRelation = query.join(parent, Relation.class, ClassJoinType.Inner); query.joinWith(childRelation).where(parent.getId()).eq(childRelation.getParent().getId());

fails even though childRelation.getParent().getId() is free because it is the identifier