org.hibernate.test.event.collection.association.bidirectional.onetomany
Class ParentWithBidirectionalOneToMany

java.lang.Object
  extended by org.hibernate.test.event.collection.AbstractParentWithCollection
      extended by org.hibernate.test.event.collection.association.bidirectional.onetomany.ParentWithBidirectionalOneToMany
All Implemented Interfaces:
Entity, ParentWithCollection
Direct Known Subclasses:
ParentWithBidirectionalOneToManySubclass

public class ParentWithBidirectionalOneToMany
extends AbstractParentWithCollection


Constructor Summary
ParentWithBidirectionalOneToMany()
           
ParentWithBidirectionalOneToMany(String name)
           
 
Method Summary
 void addChild(Child child)
           
 Child addChild(String name)
           
 Child createChild(String name)
           
 void newChildren(Collection children)
           
 void removeChild(Child child)
           
 
Methods inherited from class org.hibernate.test.event.collection.AbstractParentWithCollection
addAllChildren, clearChildren, getChildren, getId, getName, removeAllChildren, setChildren, setId, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParentWithBidirectionalOneToMany

public ParentWithBidirectionalOneToMany()

ParentWithBidirectionalOneToMany

public ParentWithBidirectionalOneToMany(String name)
Method Detail

createChild

public Child createChild(String name)

addChild

public Child addChild(String name)
Specified by:
addChild in interface ParentWithCollection
Overrides:
addChild in class AbstractParentWithCollection

addChild

public void addChild(Child child)
Specified by:
addChild in interface ParentWithCollection
Overrides:
addChild in class AbstractParentWithCollection

newChildren

public void newChildren(Collection children)
Specified by:
newChildren in interface ParentWithCollection
Overrides:
newChildren in class AbstractParentWithCollection

removeChild

public void removeChild(Child child)
Specified by:
removeChild in interface ParentWithCollection
Overrides:
removeChild in class AbstractParentWithCollection


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