relations
Class Main
java.lang.Object
relations.Main
public class Main
- extends Object
A very simple, stand-alone program that stores a new entity in the
database and then performs a query to retrieve it.
Constructor Summary |
Main()
|
Method Summary |
static void |
initFamilyTree(javax.persistence.EntityManager em)
Creates a partial family tree of the Greek dieties. |
static void |
main(String[] args)
|
static void |
runQueries(javax.persistence.EntityManager em)
Run some sample queries against the family tree model. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Main
public Main()
main
public static void main(String[] args)
initFamilyTree
public static void initFamilyTree(javax.persistence.EntityManager em)
- Creates a partial family tree of the Greek dieties.
- Parameters:
em
- the EntityManager to use in the persistence process
runQueries
public static void runQueries(javax.persistence.EntityManager em)
- Run some sample queries against the family tree model.
- Parameters:
em
- the EntityManager to use
Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.