org.springframework.samples.petclinic
Class Pet
java.lang.Object
org.springframework.samples.petclinic.BaseEntity
org.springframework.samples.petclinic.NamedEntity
org.springframework.samples.petclinic.Pet
public class Pet
- extends NamedEntity
Simple JavaBean business object representing a pet.
- Author:
- Ken Krebs, Juergen Hoeller, Sam Brannen
Constructor Summary |
Pet()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Pet
public Pet()
setBirthDate
public void setBirthDate(java.util.Date birthDate)
getBirthDate
public java.util.Date getBirthDate()
setType
public void setType(PetType type)
getType
public PetType getType()
setOwner
protected void setOwner(Owner owner)
getOwner
public Owner getOwner()
setVisitsInternal
protected void setVisitsInternal(java.util.Set<Visit> visits)
getVisitsInternal
protected java.util.Set<Visit> getVisitsInternal()
getVisits
public java.util.List<Visit> getVisits()
addVisit
public void addVisit(Visit visit)
Copyright © 2010. All Rights Reserved.