@@ -31,7 +31,7 @@ The following example shows how to insert a row and retrieving its contents:
31
31
====
32
32
[source,java,indent=0]
33
33
----
34
- include::../{example-root}/R2dbcEntityTemplateSnippets.java[tags =insertAndSelect]
34
+ include::../{example-root}/R2dbcEntityTemplateSnippets.java[tag =insertAndSelect]
35
35
----
36
36
====
37
37
@@ -56,7 +56,7 @@ This functionality is supported by the <<r2dbc.drivers,`R2dbcDialect` abstractio
56
56
====
57
57
[source,java,indent=0]
58
58
----
59
- include::../{example-root}/R2dbcEntityTemplateSnippets.java[tags =select]
59
+ include::../{example-root}/R2dbcEntityTemplateSnippets.java[tag =select]
60
60
----
61
61
====
62
62
@@ -69,10 +69,9 @@ Consider the following simple query:
69
69
====
70
70
[source,java,indent=0]
71
71
----
72
- include::../{example-root}/R2dbcEntityTemplateSnippets.java[tags =simpleSelect]
72
+ include::../{example-root}/R2dbcEntityTemplateSnippets.java[tag =simpleSelect]
73
73
----
74
- <1> Using `Person` with the `from(…)` method sets the `FROM` table based on mapping metadata.
75
- It also maps tabular results on `Person` result objects.
74
+ <1> Using `Person` with the `select(…)` method maps tabular results on `Person` result objects.
76
75
<2> Fetching `all()` rows returns a `Flux<Person>` without limiting results.
77
76
====
78
77
@@ -81,7 +80,7 @@ The following example declares a more complex query that specifies the table nam
81
80
====
82
81
[source,java,indent=0]
83
82
----
84
- include::../{example-root}/R2dbcEntityTemplateSnippets.java[tags =fullSelect]
83
+ include::../{example-root}/R2dbcEntityTemplateSnippets.java[tag =fullSelect]
85
84
----
86
85
<1> Selecting from a table by name returns row results using the given domain type.
87
86
<2> The issued query declares a `WHERE` condition on `firstname` and `lastname` columns to filter results.
@@ -142,7 +141,7 @@ Consider the following simple typed insert operation:
142
141
====
143
142
[source,java,indent=0]
144
143
----
145
- include::../{example-root}/R2dbcEntityTemplateSnippets.java[tags =insert]
144
+ include::../{example-root}/R2dbcEntityTemplateSnippets.java[tag =insert]
146
145
----
147
146
<1> Using `Person` with the `into(…)` method sets the `INTO` table, based on mapping metadata.
148
147
It also prepares the insert statement to accept `Person` objects for inserting.
@@ -165,12 +164,12 @@ Consider the following simple typed update operation:
165
164
----
166
165
Person modified = …
167
166
168
- include::../{example-root}/R2dbcEntityTemplateSnippets.java[tags =update]
167
+ include::../{example-root}/R2dbcEntityTemplateSnippets.java[tag =update]
169
168
----
170
169
<1> Update `Person` objects and apply mapping based on mapping metadata.
171
170
<2> Set a different table name by calling the `inTable(…)` method.
172
- <2 > Specify a query that translates into a `WHERE` clause.
173
- <3 > Apply the `Update` object.
171
+ <3 > Specify a query that translates into a `WHERE` clause.
172
+ <4 > Apply the `Update` object.
174
173
Set in this case `age` to `42` and return the number of affected rows.
175
174
====
176
175
@@ -185,10 +184,10 @@ Consider the following simple insert operation:
185
184
====
186
185
[source,java]
187
186
----
188
- include::../{example-root}/R2dbcEntityTemplateSnippets.java[tags =delete]
187
+ include::../{example-root}/R2dbcEntityTemplateSnippets.java[tag =delete]
189
188
----
190
189
<1> Delete `Person` objects and apply mapping based on mapping metadata.
191
190
<2> Set a different table name by calling the `from(…)` method.
192
- <2 > Specify a query that translates into a `WHERE` clause.
193
- <3 > Apply the delete operation and return the number of affected rows.
191
+ <3 > Specify a query that translates into a `WHERE` clause.
192
+ <4 > Apply the delete operation and return the number of affected rows.
194
193
====
0 commit comments