From 11c0f550dfa08f682a387aedc07cd40388ce2a80 Mon Sep 17 00:00:00 2001 From: Rahul_Nanda Date: Fri, 10 Mar 2023 01:12:19 +0530 Subject: [PATCH] updated startdate --- .../java/org/springframework/samples/petclinic/owner/Pet.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/springframework/samples/petclinic/owner/Pet.java b/src/main/java/org/springframework/samples/petclinic/owner/Pet.java index 0b0c08ac6..164f261a4 100755 --- a/src/main/java/org/springframework/samples/petclinic/owner/Pet.java +++ b/src/main/java/org/springframework/samples/petclinic/owner/Pet.java @@ -48,6 +48,10 @@ public class Pet extends NamedEntity { @DateTimeFormat(pattern = "yyyy-MM-dd") private LocalDate birthDate; + @Column(name = "birth_date") + @DateTimeFormat(pattern = "yyyy-MM-dd") + private LocalDate startDate; + @ManyToOne @JoinColumn(name = "type_id") private PetType type;