public class JpaStore extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
JpaStore.JpaWork<T>
Perform work using a provided Hibernate Session.
|
public JpaStore(URL configXml, String jndiProperty)
configXml
- The hibernate.cfg.xml URLjndiProperty
- The jndi namepublic JpaStore(URL configXml)
configXml
- The hibernate.cfg.xml URL@Deprecated public JpaStore(String persistenceUnit, String jndiProperty)
persistenceUnit
- The persistence unit namejndiProperty
- The jndi name@Deprecated public JpaStore(String persistenceUnit)
persistenceUnit
- The persistence unit namepublic <T> T withJpa(JpaStore.JpaWork<T> work)
T
- The type if the return valuework
- The unit of workCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.