You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Jakarta Data an entity defines the structure for persisting a piece of data. This structure is represented by a Java object and its associated fields. Start by creating a simple record class.
Jakarta Data queries can restrict the number of entities returned at runtime by providing a `Limit` object to the query:
203
218
204
219
```java
220
+
@Find
221
+
@OrderBy("length")
205
222
List<Package> longestWithLimit(Limit limit);
206
223
```
207
224
@@ -273,5 +290,9 @@ See the https://jakarta.ee/specifications/data/1.0/jakarta-data-1.0#_jakarta_dat
273
290
== Where to next?
274
291
Experiment by creating your own queries. Use the existing ones in the `Packages` class as a starting point and then test them out in the sample application.
0 commit comments