Skip to content

Commit cf49848

Browse files
authored
Update query_specs.adoc
1 parent 5e1ffc6 commit cf49848

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/query_specs.adoc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@ in such case you can create a database _view_ and map it to an JPA Entity and th
313313

314314
TIP: The returned properties are the properties of the primary Entity, which means the `projection` is not supported due to limitation in spring-data-jpa addressed in this https://github.com/mhewedy/spring-data-jpa-mongodb-expressions/issues/4[bug,role=external,window=_blank], until it is fixed and if you need to return properties from other entities involved in the join, you need to follow the database _view_ workaround mentioned in the previous tip.
315315

316-
==== Left and right joins
317-
1. Left join uses notation `.<` and right join uses `.>`, example on left join (department left join city):
316+
==== Left and Right joins
317+
1. Left join uses notation `<` and right join uses `>`, example on left join (department left join city):
318318
+
319319
[source,json]
320320
----
@@ -327,9 +327,8 @@ Generated SQL:
327327
...from employee e join department d on d.id = e.department_id left join city c on c.id = d.city_id where e.first_name = ? or c.name = ?
328328
----
329329
+
330-
NOTE: The join notation that define the relation between an object and its association so,
331-
`"<department.city.name"` means left join between `employee` (current object) and `department`,
332-
where `"department.<city.name"` means left join between `departement` and `city`
330+
NOTE: `"<department.city.name"` means left join between `employee` (current object) and `department`,
331+
whereas `"department.<city.name"` means left join between `departement` and `city`.
333332

334333
=== Embedded
335334
1. Using embedded fields:

0 commit comments

Comments
 (0)