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
Go to the http://localhost:9080 URL to see all the application. You will see a column of queries, some of which will accept input. To start find the `findAll` query with no inputs. Selecting this will return all of the packages similar to the following:
42
+
Go to the http://localhost:9080 URL to see all the application data. You will see a column of queries, some of which will accept input. To start find the `findAll` query with no inputs. Selecting this will return all of the packages similar to the following:
@@ -57,7 +57,7 @@ You can then try some of the queries which use input to see how it changes the r
57
57
58
58
== Creating an Entity and Repository
59
59
60
-
In Jakarta Data an entity defines the structure for persisting a piece of data. This structure is represented by a Java object and it's associated fields. Start by creating a simple record class.
60
+
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 provides the `Sort` class and the `@Limit` annotation to create queries which can be modified at runtime. It also includes a mechanism for paging to better handle large sets of results.
164
+
== Sort, Limit, and Pagination
165
+
Jakarta Data provides the `Sort` class and the `@Limit` annotation to create queries which can be modified at runtime. It also includes a mechanism for pagination to better handle large sets of results.
166
166
167
167
----
168
168
#Update the `Packages.java` class.#
@@ -210,7 +210,7 @@ When querying large amounts of data, paging is possible by providing a `PageRequ
Page<Package> allWithPaging(PageRequest pageRequest); // TODO: Provide more realistic examples(?) with limits?
214
214
```
215
215
216
216
A `PageRequest` can be constructed with the `PageRequest` class's static methods. To request the first page with a page size of 20 results:
@@ -257,4 +257,5 @@ See the Jakarta Data specification for a more comprehensive overview of the Jaka
257
257
== Where to next?
258
258
Try out the sample application by creating your own queries. Add your own queries to the `Packages` class like the provided ones and then try them out in the sample application.
0 commit comments