use of com.querydsl.sql.domain.QEmployee in project querydsl by querydsl.
the class RelationalPathExtractorTest method subQuery2.
@Test
public void subQuery2() {
QEmployee employee2 = new QEmployee("employee2");
SQLQuery<?> query = query().from(employee).where(Expressions.list(employee.id, employee.lastname).in(query().from(employee2).select(employee2.id, employee2.lastname)));
assertEquals(ImmutableSet.of(employee, employee2), extract(query.getMetadata()));
}
use of com.querydsl.sql.domain.QEmployee in project querydsl by querydsl.
the class RelationalPathExtractorTest method simpleQuery.
@Test
public void simpleQuery() {
QEmployee employee2 = new QEmployee("employee2");
SQLQuery<?> query = query().from(employee, employee2);
assertEquals(ImmutableSet.of(employee, employee2), extract(query.getMetadata()));
}
Aggregations