Package relations

Class Main


  • public class Main
    extends java.lang.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

      Constructors 
      Constructor Description
      Main()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void initFamilyTree​(jakarta.persistence.EntityManager em)
      Creates a partial family tree of the Greek dieties.
      static void main​(java.lang.String[] args)  
      static void runQueries​(jakarta.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

      • Main

        public Main()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
      • initFamilyTree

        public static void initFamilyTree​(jakarta.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​(jakarta.persistence.EntityManager em)
        Run some sample queries against the family tree model.
        Parameters:
        em - the EntityManager to use