Example usage for javax.persistence.spi PersistenceUnitInfo getJarFileUrls

List of usage examples for javax.persistence.spi PersistenceUnitInfo getJarFileUrls

Introduction

In this page you can find the example usage for javax.persistence.spi PersistenceUnitInfo getJarFileUrls.

Prototype

public List<URL> getJarFileUrls();

Source Link

Document

Returns a list of URLs for the jar files or exploded jar file directories that the persistence provider must examine for managed classes of the persistence unit.

Usage

From source file:net.ggtools.maven.ddlgenerator.MultiConfigAwarePersistenceUnitManager.java

/**
 * {@inheritDoc}.//  ww w.  ja va2 s .c om
 */
@Override
public PersistenceUnitInfo obtainPersistenceUnitInfo(String puName) {
    PersistenceUnitInfo persistenceUnitInfo = super.obtainPersistenceUnitInfo(puName);
    persistenceUnitInfo.getJarFileUrls().remove(persistenceUnitInfo.getPersistenceUnitRootUrl());
    return persistenceUnitInfo;
}