Package com.blazebit.persistence.view
Annotation Type Limit
@Target({METHOD,PARAMETER,FIELD}) @Retention(RUNTIME) public @interface Limit
Limits the amount of elements to fetch for the annotated attribute.
- Since:
- 1.5.0
- Author:
- Christian Beikov
-
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
.- Returns:
- order to use for the limit
-
-