Package petclinic.owners
Class Owner
java.lang.Object
petclinic.util.BaseEntity
petclinic.util.Person
petclinic.owners.Owner
- All Implemented Interfaces:
Serializable
A pet owner.
- See Also:
-
Field Summary
Fields inherited from class petclinic.util.BaseEntity
id
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
getCity()
Return the Pet with the given name, or null if none found for this Owner.getPets()
void
setAddress
(String address) void
void
setTelephone
(String telephone) Methods inherited from class petclinic.util.Person
getFirstName, getLastName, setFirstName, setLastName
-
Constructor Details
-
Owner
public Owner()
-
-
Method Details
-
getAddress
-
setAddress
-
getCity
-
setCity
-
getTelephone
-
setTelephone
-
getPets
-
addPet
-
getPet
Return the Pet with the given name, or null if none found for this Owner.- Parameters:
name
- the name- Returns:
- the pet
-