Examples of addJarFileUrl()


Examples of org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo.addJarFileUrl()

    when(oldInfo.getPersistenceUnitRootUrl()).thenReturn(new URL("file:foo"));

    MutablePersistenceUnitInfo newInfo = new MutablePersistenceUnitInfo();
    newInfo.setPersistenceUnitRootUrl(new URL("file:bar"));
    newInfo.addJarFileUrl(oldInfo.getPersistenceUnitRootUrl());

    MergingPersistenceUnitManager manager = new MergingPersistenceUnitManager();
    manager.postProcessPersistenceUnitInfo(newInfo, oldInfo);

    assertThat(newInfo.getJarFileUrls().size(), is(1));
View Full Code Here

Examples of org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo.addJarFileUrl()

        temp.setExcludeUnlistedClasses(newPU.excludeUnlistedClasses());
        for (URL url : newPU.getJarFileUrls()) {
            // Avoid duplicate class scanning by Ejb3Configuration. Do not re-add the URL to the list of jars for this
            // persistence unit or duplicate the persistence unit root URL location (both types of locations are scanned)
            if (!temp.getJarFileUrls().contains(url) && !temp.getPersistenceUnitRootUrl().equals(url)) {
                temp.addJarFileUrl(url);
            }
        }
        if (temp.getProperties() == null) {
            temp.setProperties(newPU.getProperties());
        } else {
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.