From c1711ebb6ac99d7fda83f189acd6ba5d1f47f83b 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] Docs: 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]” --- README.adoc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.adoc b/README.adoc index 1764530f46..d03df66507 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")