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

java.lang.Object
  extended by fri.util.database.jpa.tree.examples.closuretable.JpaExample
      extended by fri.util.database.jpa.tree.examples.closuretable.HibernateSessionExample

public class HibernateSessionExample
extends JpaExample

Shows how to use ClosureTableTreeDao with Hibernate Session.

HQL is not JPQL-compatible:

This example uses DbSessionHibernateImpl as tree persistence, which replaces "?1" place-holders by "?" in every given query.


Constructor Summary
HibernateSessionExample()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class fri.util.database.jpa.tree.examples.closuretable.JpaExample
run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateSessionExample

public HibernateSessionExample()
Method Detail

main

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