org.hibernate.test.onetomany
Class Node

java.lang.Object
  extended by org.hibernate.test.onetomany.Node
All Implemented Interfaces:
Serializable

public class Node
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
Node()
           
Node(int id, String description)
           
 
Method Summary
 void addSubNode(Node subNode)
           
 String getDescription()
           
 Integer getId()
           
 Node getParentNode()
           
 List getSubNodes()
           
 long getVersion()
           
 void removeSubNode(Node subNode)
           
 void setDescription(String description)
           
 void setId(Integer id)
           
 void setParentNode(Node parentNode)
           
 void setSubNodes(List subNodes)
           
 void setVersion(long version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Node

public Node()

Node

public Node(int id,
            String description)
Method Detail

getId

public Integer getId()

setId

public void setId(Integer id)

getVersion

public long getVersion()

setVersion

public void setVersion(long version)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getParentNode

public Node getParentNode()

setParentNode

public void setParentNode(Node parentNode)

getSubNodes

public List getSubNodes()

setSubNodes

public void setSubNodes(List subNodes)

addSubNode

public void addSubNode(Node subNode)

removeSubNode

public void removeSubNode(Node subNode)


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