Example usage for org.hibernate.jpa.boot.spi PersistenceUnitDescriptor getProperties

List of usage examples for org.hibernate.jpa.boot.spi PersistenceUnitDescriptor getProperties

Introduction

In this page you can find the example usage for org.hibernate.jpa.boot.spi PersistenceUnitDescriptor getProperties.

Prototype

public Properties getProperties();

Source Link

Usage

From source file:de.micromata.genome.jpa.impl.JpaWithExtLibrariesScanner.java

License:Apache License

private Properties getPersistenceProperties(ScanEnvironment environment) {
    if ((environment instanceof StandardJpaScanEnvironmentImpl) == false) {
        log.warn("environment is not StandardJpaScanEnvironmentImpl: " + environment.getClass());
        return new Properties();
    }//w  ww. ja v a2  s.c o m
    PersistenceUnitDescriptor pud = (PersistenceUnitDescriptor) PrivateBeanUtils.readField(environment,
            "persistenceUnitDescriptor");
    return pud.getProperties();
}