View Javadoc

1   package org.springframework.samples.petclinic;
2   
3   import java.util.Date;
4   
5   /**
6    * Simple JavaBean domain object representing a visit.
7    *
8    * @author Ken Krebs
9    */
10  public class Visit extends BaseEntity {
11  
12  	/** Holds value of property date. */
13  	private Date date;
14  
15  	/** Holds value of property description. */
16  	private String description;
17  
18  	/** Holds value of property pet. */
19  	private Pet pet;
20  
21  
22  	/** Creates a new instance of Visit for the current date */
23  	public Visit() {
24  		this.date = new Date();
25  	}
26  
27  
28  	/** Getter for property date.
29  	 * @return Value of property date.
30  	 */
31  	public Date getDate() {
32  		return this.date;
33  	}
34  
35  	/** Setter for property date.
36  	 * @param date New value of property date.
37  	 */
38  	public void setDate(Date date) {
39  		this.date = date;
40  	}
41  
42  	/** Getter for property description.
43  	 * @return Value of property description.
44  	 */
45  	public String getDescription() {
46  		return this.description;
47  	}
48  
49  	/** Setter for property description.
50  	 * @param description New value of property description.
51  	 */
52  	public void setDescription(String description) {
53  		this.description = description;
54  	}
55  
56  	/** Getter for property pet.
57  	 * @return Value of property pet.
58  	 */
59  	public Pet getPet() {
60  		return this.pet;
61  	}
62  
63  	/** Setter for property pet.
64  	 * @param pet New value of property pet.
65  	 */
66  	public void setPet(Pet pet) {
67  		this.pet = pet;
68  	}
69  
70  }