Browse Source

Add Person entity example to JDBC getting started section.

Signed-off-by: “[github]” <ruturajjadhav122@gmail.com>

Closes #2146
issue/2138-query-with-pageable
“[github]” 3 months ago committed by Jens Schauder
parent
commit
73494792a5
No known key found for this signature in database
GPG Key ID: 2BE5D185CD2A1CE6
  1. 11
      README.adoc

11
README.adoc

@ -30,6 +30,17 @@ Here is a quick teaser of an application using Spring Data JDBC Repositories in @@ -30,6 +30,17 @@ Here is a quick teaser of an application using Spring Data JDBC Repositories in
[source,java]
----
@Table("person")
public class Person {
@Id
private Long id;
private String firstname;
private String lastname;
// getters and setters
}
interface PersonRepository extends CrudRepository<Person, Long> {
@Query("SELECT * FROM person WHERE lastname = :lastname")

Loading…
Cancel
Save