org.hibernate.test.hql
Class Mammal

java.lang.Object
  extended by org.hibernate.test.hql.Animal
      extended by org.hibernate.test.hql.Mammal
Direct Known Subclasses:
DomesticAnimal, Human

public class Mammal
extends Animal


Constructor Summary
Mammal()
           
 
Method Summary
 boolean equals(Object o)
           
 Date getBirthdate()
           
 int hashCode()
           
 boolean isPregnant()
           
 void setBirthdate(Date birthdate)
           
 void setPregnant(boolean pregnant)
           
 
Methods inherited from class org.hibernate.test.hql.Animal
addOffspring, getBodyWeight, getDescription, getFather, getId, getMother, getOffspring, getSerialNumber, getZoo, setBodyWeight, setDescription, setFather, setId, setMother, setOffspring, setSerialNumber, setZoo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mammal

public Mammal()
Method Detail

isPregnant

public boolean isPregnant()

setPregnant

public void setPregnant(boolean pregnant)

getBirthdate

public Date getBirthdate()

setBirthdate

public void setBirthdate(Date birthdate)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.