FileDocCategorySizeDatePackage
Child.javaAPI DocHibernate 3.2.51162Tue May 31 22:29:28 GMT+01:00 2005org.hibernate.test.compositeelement

Child

public class Child extends Object
author
gavin

Fields Summary
private String
name
private String
bio
private Parent
parent
private int
bioLength
Constructors Summary
Child()

public Child(String name)

		this.name = name;
	
Methods Summary
public booleanequals(java.lang.Object other)

		Child c = (Child) other;
		return c.parent.getId().equals(parent.getId()) 
			&& c.name.equals(name);
	
public java.lang.StringgetBio()

		return bio;
	
public intgetBioLength()

		return bioLength;
	
public java.lang.StringgetName()

return
Returns the name.

		return name;
	
public ParentgetParent()

return
Returns the parent.

		return parent;
	
public inthashCode()

		return name.hashCode();
	
public voidsetBio(java.lang.String bio)

		this.bio = bio;
	
public voidsetBioLength(java.lang.Integer bioLength)

		this.bioLength = bioLength==null ? 0 : bioLength.intValue();
	
public voidsetName(java.lang.String name)

param
name The name to set.

		this.name = name;
	
public voidsetParent(Parent parent)

param
parent The parent to set.

		this.parent = parent;