org.springframework.samples.petclinic
Class Visit

java.lang.Object
  extended by org.springframework.samples.petclinic.BaseEntity
      extended by org.springframework.samples.petclinic.Visit

public class Visit
extends BaseEntity

Simple JavaBean domain object representing a visit.

Author:
Ken Krebs

Constructor Summary
Visit()
          Creates a new instance of Visit for the current date
 
Method Summary
 java.util.Date getDate()
          Getter for property date.
 java.lang.String getDescription()
          Getter for property description.
 Pet getPet()
          Getter for property pet.
 void setDate(java.util.Date date)
          Setter for property date.
 void setDescription(java.lang.String description)
          Setter for property description.
 void setPet(Pet pet)
          Setter for property pet.
 
Methods inherited from class org.springframework.samples.petclinic.BaseEntity
getId, isNew, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Visit

public Visit()
Creates a new instance of Visit for the current date

Method Detail

getDate

public java.util.Date getDate()
Getter for property date.

Returns:
Value of property date.

setDate

public void setDate(java.util.Date date)
Setter for property date.

Parameters:
date - New value of property date.

getDescription

public java.lang.String getDescription()
Getter for property description.

Returns:
Value of property description.

setDescription

public void setDescription(java.lang.String description)
Setter for property description.

Parameters:
description - New value of property description.

getPet

public Pet getPet()
Getter for property pet.

Returns:
Value of property pet.

setPet

public void setPet(Pet pet)
Setter for property pet.

Parameters:
pet - New value of property pet.


Copyright © 2010. All Rights Reserved.