Examples of fromUserProperties()


Examples of org.apache.openjpa.persistence.PersistenceUnitInfoImpl.fromUserProperties()

        builder.append(")");
        props.put("openjpa.MetaDataFactory", builder.toString());
        // bypass generic Persistence because it'll try to load the persistence-unit from persistence.xml
        PersistenceProviderImpl provider = new PersistenceProviderImpl();
        PersistenceUnitInfoImpl pui = new PersistenceUnitInfoImpl();
        pui.fromUserProperties(props);
        EntityManagerFactory emf = provider.createContainerEntityManagerFactory(pui, props);
        EM = emf.createEntityManager();
        getVersion(emf);
        return EM;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.