mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-30 21:08:30 +08:00
fixed issue with from clause
This commit is contained in:
parent
8a94a84647
commit
4c856c50c0
@ -9,11 +9,29 @@ import com.mysema.query.grammar.Types.ExprBoolean;
|
||||
import com.mysema.query.grammar.Types.ExprEntity;
|
||||
|
||||
public class JoinExpression {
|
||||
public ExprBoolean[] conditions;
|
||||
public final ExprEntity<?> target;
|
||||
public final JoinType type;
|
||||
private ExprBoolean[] conditions;
|
||||
private final ExprEntity<?> target;
|
||||
private final JoinType type;
|
||||
|
||||
JoinExpression(JoinType type, ExprEntity<?> target) {
|
||||
this.type = type;
|
||||
this.target = target;
|
||||
}
|
||||
|
||||
public ExprBoolean[] getConditions() {
|
||||
return conditions;
|
||||
}
|
||||
|
||||
public void setConditions(ExprBoolean[] conditions) {
|
||||
this.conditions = conditions;
|
||||
}
|
||||
|
||||
public ExprEntity<?> getTarget() {
|
||||
return target;
|
||||
}
|
||||
|
||||
public JoinType getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
}
|
||||
@ -91,7 +91,7 @@ public class QueryBase<A extends QueryBase<A>> implements Query<A> {
|
||||
|
||||
public A with(ExprBoolean... o) {
|
||||
if (!joins.isEmpty()){
|
||||
joins.get(joins.size()-1).conditions = o;
|
||||
joins.get(joins.size()-1).setConditions(o);
|
||||
}
|
||||
return (A) this;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user