1 package org.springframework.samples.petclinic;
2
3 import java.util.Date;
4
5
6
7
8
9
10 public class Visit extends BaseEntity {
11
12
13 private Date date;
14
15
16 private String description;
17
18
19 private Pet pet;
20
21
22
23 public Visit() {
24 this.date = new Date();
25 }
26
27
28
29
30
31 public Date getDate() {
32 return this.date;
33 }
34
35
36
37
38 public void setDate(Date date) {
39 this.date = date;
40 }
41
42
43
44
45 public String getDescription() {
46 return this.description;
47 }
48
49
50
51
52 public void setDescription(String description) {
53 this.description = description;
54 }
55
56
57
58
59 public Pet getPet() {
60 return this.pet;
61 }
62
63
64
65
66 public void setPet(Pet pet) {
67 this.pet = pet;
68 }
69
70 }