mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-24 21:07:26 +08:00
updated
This commit is contained in:
parent
f15a171995
commit
6045b2015d
@ -137,7 +137,6 @@ public class AbstractColQuery<SubType extends AbstractColQuery<SubType>> impleme
|
||||
return new DefaultIndexSupport(new SimpleIteratorSource(exprToIt), ops, sources);
|
||||
}
|
||||
|
||||
// TODO : this signature isn't right when used with custom iterator source
|
||||
public <A> SubType from(Expr<A> entity, A first, A... rest) {
|
||||
List<A> list = new ArrayList<A>(rest.length + 1);
|
||||
list.add(first);
|
||||
@ -145,7 +144,6 @@ public class AbstractColQuery<SubType extends AbstractColQuery<SubType>> impleme
|
||||
return from(entity, list);
|
||||
}
|
||||
|
||||
// TODO : this signature isn't right when used with custom iterator source
|
||||
public <A> SubType from(Expr<A> entity, Iterable<? extends A> col) {
|
||||
alias(entity, col);
|
||||
query.from((Expr<?>)entity);
|
||||
|
||||
@ -181,6 +181,10 @@ public class ColQueryTest extends AbstractQueryTest{
|
||||
assertEquals("null path in expression", e.getMessage());
|
||||
}
|
||||
|
||||
// 12
|
||||
TestQuery query = query().from(cat, c1, c2).from(cat, c1, c2);
|
||||
assertEquals(1, query.getMetadata().getJoins().size());
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Loading…
Reference in New Issue
Block a user