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 void
addOffspring(Animal offspring)
float
getBodyWeight()
String
getDescription()
Animal
getFather()
Long
getId()
Animal
getMother()
Set<Human>
getOffspring()
String
getSerialNumber()
Zoo
getZoo()
void
setBodyWeight(float bodyWeight)
void
setDescription(String description)
void
setFather(Animal father)
void
setId(Long id)
void
setMother(Animal mother)
void
setOffspring(Set offspring)
void
setSerialNumber(String serialNumber)
void
setZoo(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)
-
-