From 73494792a505e3501d62ad2b0b45570d3d05fcc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9C=5Bgithub=5D=E2=80=9D?= Date: Tue, 30 Sep 2025 10:51:31 +0530 Subject: [PATCH] Add Person entity example to JDBC getting started section. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: “[github]” Closes #2146 --- README.adoc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.adoc b/README.adoc index 1764530f4..d03df6650 100644 --- a/README.adoc +++ b/README.adoc @@ -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 { @Query("SELECT * FROM person WHERE lastname = :lastname")