1 package org.springframework.samples.petclinic; 2 3 import java.util.Date ; 4 5 10 public class Visit extends Entity { 11 12 13 private Date date; 14 15 16 private String description; 17 18 19 private Pet pet; 20 21 22 public Visit() { 23 this.date = new Date (); 24 } 25 26 29 public Date getDate() { 30 return this.date; 31 } 32 33 36 public void setDate(Date date) { 37 this.date = date; 38 } 39 40 43 public String getDescription() { 44 return this.description; 45 } 46 47 50 public void setDescription(String description) { 51 this.description = description; 52 } 53 54 57 public Pet getPet() { 58 return this.pet; 59 } 60 61 64 protected void setPet(Pet pet) { 65 this.pet = pet; 66 } 67 68 } 69 | Popular Tags |