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
Copy file name to clipboardExpand all lines: src/main/asciidoc/query-by-example.adoc
+2-7Lines changed: 2 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,7 @@ In Spring Data JPA you can use Query by Example with Repositories.
7
7
====
8
8
[source, java]
9
9
----
10
-
public interface PersonRepository extends JpaRepository<Person, String> {
11
-
12
-
}
10
+
public interface PersonRepository extends JpaRepository<Person, String> { … }
13
11
14
12
public class PersonService {
15
13
@@ -22,10 +20,7 @@ public class PersonService {
22
20
----
23
21
====
24
22
25
-
An `Example` containing an untyped `ExampleSpec` uses the Repository type. Typed `ExampleSpec` use their type for creating JPA queries.
26
-
27
-
NOTE: Only SingularAttribute properties can be used for property matching.
28
-
23
+
NOTE: Only `SingularAttribute` properties can currently be used for property matching.
29
24
30
25
Property specifier accepts property names (e.g. "firstname" and "lastname"). You can navigate by chaining properties together with dots ("address.city"). You can tune it with matching options and case sensitivity.
0 commit comments