fri.util.database.jpa.tree.examples.closuretable
Class PersonCtt
java.lang.Object
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.
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PersonCtt
public PersonCtt()
PersonCtt
public PersonCtt(java.lang.String name)
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