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 EntityManageremprotected static EntityManagerFactoryemfprotected org.slf4j.Loggerlogprivate static StringPERSISTENCE_UNIT
-
Constructor Summary
Constructors Constructor Description DemoBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcleanup()protected voidpopulate()voidsetUp()static voidsetUpClass()voidtearDown()static voidtearDownClass()
-
-
-
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
-
-