Skip to content

Commit fb42959

Browse files
committed
Improve documentation about query construction.
Closes #719
1 parent d2d3fb8 commit fb42959

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/antora/modules/ROOT/pages/jdbc/query-methods.adoc

+4
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ Properties that don't have a matching column in the result will not be set.
169169
The query is used for populating the aggregate root, embedded entities and one-to-one relationships including arrays of primitive types which get stored and loaded as SQL-array-types.
170170
Separate queries are generated for maps, lists, sets and arrays of entities.
171171

172+
Properties one-to-one relationships must have there name prefixed by the name of the relationship plus `_`.
173+
For example if the `User` from the example above has an `address` with the property `city` the column for that `city` must be labeled `address_city`.
174+
175+
172176
WARNING: Note that String-based queries do not support pagination nor accept `Sort`, `PageRequest`, and `Limit` as a query parameter as for these queries the query would be required to be rewritten.
173177
If you want to apply limiting, please express this intent using SQL and bind the appropriate parameters to the query yourself.
174178

0 commit comments

Comments
 (0)