FileDocCategorySizeDatePackage
Animal.javaAPI DocHibernate 3.2.51688Sun Jul 10 11:51:18 BST 2005org.hibernate.test.hql

Animal

public class Animal extends Object
author
Gavin King

Fields Summary
private Long
id
private float
bodyWeight
private Set
offspring
private Animal
mother
private Animal
father
private String
description
private Zoo
zoo
private String
serialNumber
Constructors Summary
public Animal()

	
public Animal(String description, float bodyWeight)

		this.description = description;
		this.bodyWeight = bodyWeight;
	
Methods Summary
public voidaddOffspring(org.hibernate.test.hql.Animal offspring)

		if ( this.offspring == null ) {
			this.offspring = new HashSet();
		}

		this.offspring.add( offspring );
	
public floatgetBodyWeight()

		return bodyWeight;
	
public java.lang.StringgetDescription()

		return description;
	
public org.hibernate.test.hql.AnimalgetFather()

		return father;
	
public java.lang.LonggetId()

		return id;
	
public org.hibernate.test.hql.AnimalgetMother()

		return mother;
	
public java.util.SetgetOffspring()

		return offspring;
	
public java.lang.StringgetSerialNumber()

		return serialNumber;
	
public ZoogetZoo()

		return zoo;
	
public voidsetBodyWeight(float bodyWeight)

		this.bodyWeight = bodyWeight;
	
public voidsetDescription(java.lang.String description)

		this.description = description;
	
public voidsetFather(org.hibernate.test.hql.Animal father)

		this.father = father;
	
public voidsetId(java.lang.Long id)

		this.id = id;
	
public voidsetMother(org.hibernate.test.hql.Animal mother)

		this.mother = mother;
	
public voidsetOffspring(java.util.Set offspring)

		this.offspring = offspring;
	
public voidsetSerialNumber(java.lang.String serialNumber)

		this.serialNumber = serialNumber;
	
public voidsetZoo(Zoo zoo)

		this.zoo = zoo;