org.compass.gps.device.jpa.entities
Class JpaEntitiesLocatorDetector
java.lang.Object
org.compass.gps.device.jpa.entities.JpaEntitiesLocatorDetector
public abstract class JpaEntitiesLocatorDetector
- extends Object
A JpaEntitiesLocator detector. Tries to check for the actual implementation of JPA
EntityManagerFactory, and based on it, check if the current set of actual JPA
implementations is one of compass supported ones (like Hibernate).
If no implementation is found for the native EntityManagerFactory implementation,
uses the DefaultJpaEntitiesLocator.
Currently support the following JPA implementations: Hibernate, TopLink Essentials (Glassfish Persistence), OpenJPA.
Assumes that the EntityManagerFactory is the native one, since the
NativeJpaExtractor of the
JpaGpsDevice was used to extract it.
- Author:
- kimchy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JpaEntitiesLocatorDetector
public JpaEntitiesLocatorDetector()
detectLocator
public static JpaEntitiesLocator detectLocator(javax.persistence.EntityManagerFactory entityManagerFactory,
CompassSettings settings)
Copyright (c) 2004-2008 The Compass Project.