fri.util.database.jpa.tree.examples.closuretable
Class PersonCtt

java.lang.Object
  extended by fri.util.database.jpa.tree.examples.closuretable.PersonCtt
All Implemented Interfaces:
ClosureTableTreeNode, TreeNode, java.lang.Cloneable

@Entity
public class PersonCtt
extends java.lang.Object
implements ClosureTableTreeNode

Example entity, Ctt = Closure Table Tree.


Constructor Summary
PersonCtt()
           
PersonCtt(java.lang.String name)
           
 
Method Summary
 ClosureTableTreeNode clone()
          For copy and unique constraint checking this is required.
 java.lang.String getId()
           
 java.lang.String getName()
           
 void setName(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersonCtt

public PersonCtt()

PersonCtt

public PersonCtt(java.lang.String name)
Method Detail

getId

public java.lang.String getId()
Specified by:
getId in interface TreeNode
Returns:
the primary key of this tree node.

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

clone

public ClosureTableTreeNode clone()
Description copied from interface: ClosureTableTreeNode
For copy and unique constraint checking this is required.

Specified by:
clone in interface ClosureTableTreeNode
Specified by:
clone in interface TreeNode
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object