File tree Expand file tree Collapse file tree
api/src/main/java/jakarta/data/repository Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919
2020import jakarta .data .Order ;
2121import jakarta .data .Sort ;
22+ import jakarta .data .Sort .Nulls ;
2223
2324import java .lang .annotation .ElementType ;
2425import java .lang .annotation .Repeatable ;
113114 */
114115 boolean ignoreCase () default false ;
115116
117+ /**
118+ * <p>Indicates whether {@code null} values are ordered
119+ * {@link Nulls#FIRST FIRST}, {@link Nulls#LAST LAST}, or
120+ * {@linkplain Nulls#UNSPECIFIED by the data store}.</p>
121+ *
122+ * <p>If the data store is a non-relational database that is not
123+ * capable of ordering {@code null} values, then repository methods
124+ * annotated to order nulls {@code FIRST} or {@code LAST} must raise
125+ * {@link UnsupportedOperationException}.</p>
126+ *
127+ * @return indication of how {@code null} values are ordered.
128+ * @since 1.1
129+ */
130+ Nulls nullOrdering () default Nulls .UNSPECIFIED ;
131+
116132 /**
117133 * <p>Entity attribute name to sort by.</p>
118134 *
You can’t perform that action at this time.
0 commit comments