Class Animal
- java.lang.Object
-
- org.hibernate.testing.orm.domain.animal.Animal
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOffspring(Animal offspring)floatgetBodyWeight()StringgetDescription()AnimalgetFather()LonggetId()AnimalgetMother()Set<Human>getOffspring()StringgetSerialNumber()ZoogetZoo()voidsetBodyWeight(float bodyWeight)voidsetDescription(String description)voidsetFather(Animal father)voidsetId(Long id)voidsetMother(Animal mother)voidsetOffspring(Set offspring)voidsetSerialNumber(String serialNumber)voidsetZoo(Zoo zoo)
-
-
-
Constructor Detail
-
Animal
public Animal()
-
Animal
public Animal(String description, float bodyWeight)
-
-
Method Detail
-
getId
public Long getId()
-
setId
public void setId(Long id)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getBodyWeight
public float getBodyWeight()
-
setBodyWeight
public void setBodyWeight(float bodyWeight)
-
getSerialNumber
public String getSerialNumber()
-
setSerialNumber
public void setSerialNumber(String serialNumber)
-
getZoo
public Zoo getZoo()
-
setZoo
public void setZoo(Zoo zoo)
-
getMother
public Animal getMother()
-
setMother
public void setMother(Animal mother)
-
getFather
public Animal getFather()
-
setFather
public void setFather(Animal father)
-
addOffspring
public void addOffspring(Animal offspring)
-
setOffspring
public void setOffspring(Set offspring)
-
-