Package com.blazebit.persistence.view
Annotation Type Limit
Limits the amount of elements to fetch for the annotated attribute.
- Since:
- 1.5.0
- Author:
- Christian Beikov
-
Required Element Summary
-
Optional Element Summary
-
Element Details
-
limit
String limitThe maximum amount of elements to fetch for the annotated attribute. Can be an integer literal e.g.5
or a parameter expression:myParam
.- Returns:
- The limit
-
order
String[] orderThe order to use for the elements for the limit. This will not necessarily order the elements in a collection! The syntax is like for a JPQL.next order by item i.e. something likeage DESC NULLS LAST
. Paths that are not fully qualified i.e. relative paths that use no root alias, are prefixed with the mapping result.- Returns:
- order to use for the limit
-
-
-
offset
String offsetThe amount of elements to skip for the annotated attribute. Can be an integer literal e.g.5
or a parameter expression:myParam
.- Returns:
- The offset
- Default:
- ""
-