|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrelations.Main
public class Main
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(java.lang.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 |
| Constructor Detail |
|---|
public Main()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public static void initFamilyTree(javax.persistence.EntityManager em)
em - the EntityManager to use in the persistence processpublic static void runQueries(javax.persistence.EntityManager em)
em - the EntityManager to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||