Package ejava.examples.orm.ejbql
Class DemoBase
- java.lang.Object
-
- ejava.examples.orm.ejbql.DemoBase
-
- Direct Known Subclasses:
BulkDemo
,EJBQLDemo
,NamedQueryDemo
,NativeQueryDemo
,QueryDemo
public abstract class DemoBase extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected EntityManager
em
protected static EntityManagerFactory
emf
protected org.slf4j.Logger
log
private static String
PERSISTENCE_UNIT
-
Constructor Summary
Constructors Constructor Description DemoBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
cleanup()
protected void
populate()
void
setUp()
static void
setUpClass()
void
tearDown()
static void
tearDownClass()
-
-
-
Field Detail
-
log
protected org.slf4j.Logger log
-
PERSISTENCE_UNIT
private static final String PERSISTENCE_UNIT
- See Also:
- Constant Field Values
-
emf
protected static EntityManagerFactory emf
-
em
protected EntityManager em
-
-