mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-24 21:07:26 +08:00
added test
This commit is contained in:
parent
d73281d48a
commit
d808fb6c27
Binary file not shown.
@ -66,6 +66,10 @@ extends RichProjectable(qry) {
|
||||
select(f1(path), f2(path), f3(path), f4(path), f5(path))
|
||||
}
|
||||
|
||||
def selectGrouped[K,T,V](fkey: FEx[K], fparent: FEx[T], fchild: FEx[V]): List[(T,Set[V])] = {
|
||||
selectGrouped(fkey(path), fparent(path), fchild(path))
|
||||
}
|
||||
|
||||
def single: Option[T] = single(expr)
|
||||
|
||||
def single[T](f: FEx[T]): Option[T] = single(f(path))
|
||||
|
||||
@ -162,6 +162,13 @@ class JDBCIntegrationTest extends CompileTestUtils with SQLHelpers {
|
||||
assertEquals(2, employee.query.count)
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
def Join {
|
||||
val sup = Employee as "sup"
|
||||
val result: List[(Employee, Employee)] = employee.join(_.superiorFk, sup).select
|
||||
}
|
||||
|
||||
@Test
|
||||
def Unique_Result {
|
||||
assertEquals("abc", query.from(survey).where(survey.id eq 1).uniqueResult(survey.name))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user