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

java.lang.Object
  extended by fri.util.database.jpa.tree.examples.closuretable.JpaExample
Direct Known Subclasses:
HibernateSessionExample

public class JpaExample
extends java.lang.Object

Shows how to use ClosureTableTreeDao with JPA, using two DAOs to maintain two different trees on the same node table.


Constructor Summary
JpaExample()
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void run(DbSession dbSession)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaExample

public JpaExample()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

run

protected void run(DbSession dbSession)
            throws UniqueConstraintViolationException
Throws:
UniqueConstraintViolationException