Class Owner

All Implemented Interfaces:
Serializable

@Entity public class Owner extends Person
A pet owner.
See Also:
  • Constructor Details

    • Owner

      public Owner()
  • Method Details

    • getAddress

      public String getAddress()
    • setAddress

      public void setAddress(String address)
    • getCity

      public String getCity()
    • setCity

      public void setCity(String city)
    • getTelephone

      public String getTelephone()
    • setTelephone

      public void setTelephone(String telephone)
    • getPets

      public List<Pet> getPets()
    • addPet

      public void addPet(@NonNull Pet pet)
    • getPet

      @Nullable public Pet getPet(@NonNull String name)
      Return the Pet with the given name, or null if none found for this Owner.
      Parameters:
      name - the name
      Returns:
      the pet