fri.util.database.jpa.tree.nestedsets.pojos
Class AbstractNestedSetsTreePojo

java.lang.Object
  extended by fri.util.database.jpa.commons.AbstractEntity
      extended by fri.util.database.jpa.tree.nestedsets.pojos.AbstractNestedSetsTreePojo
Direct Known Subclasses:
NestedSetsTreePojo, NonUniqueNestedSetsTreePojo, TemporalNestedSetsTreePojo

@MappedSuperclass
public abstract class AbstractNestedSetsTreePojo
extends AbstractEntity

Abstraction of an NestedSetsTree POJO that holds left and right numbers.

The topLevel property would also belong to here, but unfortunately this seems impossible with JPA ManyToOne annotation as this needs a concrete class. (Overriding and annotating the setter in subclass did not help.)

Author:
Fritz Ritzberger, 08.10.2011

Constructor Summary
protected AbstractNestedSetsTreePojo()
           
 
Method Summary
 int getLeft()
           
 int getRight()
           
 void setLeft(int left)
           
 void setRight(int right)
           
 
Methods inherited from class fri.util.database.jpa.commons.AbstractEntity
equals, getId, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractNestedSetsTreePojo

protected AbstractNestedSetsTreePojo()
Method Detail

getLeft

public int getLeft()

setLeft

public void setLeft(int left)

getRight

public int getRight()

setRight

public void setRight(int right)