toggle menu
modicio
0.3
jvm
switch theme
search in API
modicio
/
modic.io.repository
/
FragmentRepository
/
findOneFragmentOfEachVariantLazy
find
One
Fragment
Of
Each
Variant
Lazy
@
Query
(
value
=
"SELECT DISTINCT ON (variantID) * FROM Fragment f WHERE f.open = :isOpen limit :limit"
,
nativeQuery
=
true
)
abstract
fun
findOneFragmentOfEachVariantLazy
(
@
Param
(
value
=
"limit"
)
limit
:
Int
,
@
Param
(
value
=
"isOpen"
)
isOpen
:
Boolean
=
false
)
:
List
<
Fragment
>