Skip to content

Commit b4614df

Browse files
authored
Merge pull request #30 from OpenLiberty/tests
Readme updates from feedback
2 parents e7d403e + f69dff5 commit b4614df

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.adoc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,23 @@ ID Length Width Height Destination
5656
You can then try some of the queries which use input to see how it changes which packages are returned.
5757

5858

59+
//TODO add an example with input here
60+
61+
[role='command']
62+
include::{common-includes}/twyb-end.adoc[]
63+
5964
== Creating an Entity and Repository
6065

66+
Navigate to the `start` directory to begin.
67+
ifdef::cloud-hosted[]
68+
```bash
69+
cd /home/project/guide-jakarta-data/start
70+
```
71+
endif::[]
72+
73+
[role='command']
74+
include::{common-includes}/devmode-lmp33-start.adoc[]
75+
6176
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.
6277

6378
[role="code_command hotspot file=0", subs="quotes"]
@@ -202,6 +217,8 @@ Sort sort = Sort.desc("height");
202217
Jakarta Data queries can restrict the number of entities returned at runtime by providing a `Limit` object to the query:
203218

204219
```java
220+
@Find
221+
@OrderBy("length")
205222
List<Package> longestWithLimit(Limit limit);
206223
```
207224

@@ -273,5 +290,9 @@ See the https://jakarta.ee/specifications/data/1.0/jakarta-data-1.0#_jakarta_dat
273290
== Where to next?
274291
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.
275292

293+
294+
//TODO add ideas for queries here
295+
296+
276297
//Eventually link to an Advanced Guide as well.
277298
//Include Static Metamodel

0 commit comments

Comments
 (0)