Skip to content

Commit e5dabd1

Browse files
author
Mesut Celik
authored
@query Examples added
1 parent 66e0c2a commit e5dabd1

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.adoc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,26 @@ public class AppTest {
119119
120120
----
121121

122+
== Sample @Query Usages
123+
Query with hardcoded value
124+
[source,java]
125+
----
126+
@Query("firstname=James")
127+
public List<Person> peoplewiththeirFirstNameIsJames();
128+
----
129+
Query with one variable
130+
[source,java]
131+
----
132+
@Query("firstname=%s")
133+
public List<Person> peoplewiththeirFirstName(String firstName);
134+
----
135+
Query with multiple variable values
136+
[source,java]
137+
----
138+
@Query("firstname=%s and lastname=%s")
139+
public List<Person> peoplewithFirstAndLastName(String firstName,String lastName);
140+
----
141+
122142
== Installation
123143

124144
=== Maven

0 commit comments

Comments
 (0)