fri.util.database.jpa.tree.examples.closuretable
Class PersonOrganisationalTreePath
java.lang.Object
fri.util.database.jpa.tree.examples.closuretable.PersonAbstractTreePath
fri.util.database.jpa.tree.examples.closuretable.PersonOrganisationalTreePath
- All Implemented Interfaces:
- TreePath
@Entity
public class PersonOrganisationalTreePath
- extends PersonAbstractTreePath
Tree aspect: organizational hierarchy among persons, e.g. who gives orders to whom.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PersonOrganisationalTreePath
public PersonOrganisationalTreePath()
getAncestor
public ClosureTableTreeNode getAncestor()
- Description copied from interface:
TreePath
- One of the ancestor tree nodes of the descendant, or the descendant itself.
The private Java property name for this MUST BE "ancestor" in any implementation,
as that name is used in DAO queries.
setAncestor
public void setAncestor(ClosureTableTreeNode ancestor)
getDescendant
public ClosureTableTreeNode getDescendant()
- Description copied from interface:
TreePath
- The (descendant) tree node (of the ancestor).
The private Java property name for this MUST BE "descendant" in any implementation,
as that name is used in DAO queries.
setDescendant
public void setDescendant(ClosureTableTreeNode descendant)