FileDocCategorySizeDatePackage
Parent.javaAPI DocHibernate 3.2.5824Wed Mar 07 12:32:58 GMT 2007org.hibernate.test.collection.map

Parent

public class Parent extends Object
todo: describe Parent
author
Steve Ebersole

Fields Summary
private String
name
private Map
children
Constructors Summary
public Parent()


	  
	
public Parent(String name)

		this.name = name;
	
Methods Summary
public ChildaddChild(java.lang.String name)

		Child child = new Child( name );
		addChild( child );
		return child;
	
public voidaddChild(Child child)

		child.setParent( this );
		getChildren().put( child.getName(), child );
	
public java.util.MapgetChildren()

		return children;
	
public java.lang.StringgetName()

		return name;
	
public voidsetChildren(java.util.Map children)

		this.children = children;
	
public voidsetName(java.lang.String name)

		this.name = name;