relations
Class Main

java.lang.Object
  extended by 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(EntityManager em)
          Creates a partial family tree of the Greek dieties.
static void main(String[] args)
           
static void runQueries(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
 

Constructor Detail

Main

public Main()
Method Detail

main

public static void main(String[] args)

initFamilyTree

public static void initFamilyTree(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(EntityManager em)
Run some sample queries against the family tree model.

Parameters:
em - the EntityManager to use


Copyright © 2006-2007 Apache Software Foundation. All Rights Reserved.