Package org.eclipse.persistence.jpa.rs.features

Examples of org.eclipse.persistence.jpa.rs.features.FeatureSetV2


    public PersistenceContext bootstrapPersistenceContext(String name, EntityManagerFactory emf, URI baseURI, String version, boolean replace) {
        PersistenceContext persistenceContext = new PersistenceContext(name, (EntityManagerFactoryImpl) emf, baseURI);
        persistenceContext.setBaseURI(baseURI);
        persistenceContext.setVersion(version);
        if (persistenceContext.isVersionGreaterOrEqualTo(AbstractResource.SERVICE_VERSION_2_0)) {
            persistenceContext.setSupportedFeatureSet(new FeatureSetV2());
        } else {
            persistenceContext.setSupportedFeatureSet(new FeatureSetPreV2());
        }
        return persistenceContext;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.persistence.jpa.rs.features.FeatureSetV2

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.