com.guicedee.guicedpersistence.jpa.JPAConnectionBaseInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of guiced-persistence-jpa Show documentation
Show all versions of guiced-persistence-jpa Show documentation
A complete JPA 2.1 implementation for Standalone or EE Implementation. Enables Multiple Persistence units
with annotated injection support aPerfect for Guice implementations, test suites, and Guice enabled Web Applications or EAR Projects.
Requires JDK 8 and up
package com.guicedee.guicedpersistence.jpa;
import com.guicedee.guicedpersistence.db.ConnectionBaseInfo;
import javax.sql.DataSource;
public class JPAConnectionBaseInfo
extends ConnectionBaseInfo
{
/**
* You can fetch it directly from the entity manager using (DataSource)managerFactory.getConnectionFactory()
*
* @return Null
*/
@Override
@SuppressWarnings("unchecked")
public DataSource toPooledDatasource()
{
return null;
}
}