Example usage for org.springframework.orm.jpa.persistenceunit MutablePersistenceUnitInfo addProperty

List of usage examples for org.springframework.orm.jpa.persistenceunit MutablePersistenceUnitInfo addProperty

Introduction

In this page you can find the example usage for org.springframework.orm.jpa.persistenceunit MutablePersistenceUnitInfo addProperty.

Prototype

public void addProperty(String name, String value) 

Source Link

Usage

From source file:org.jresponder.standalone.JrEntityManagerFactory.java

@Override
public void postProcessPersistenceUnitInfo(MutablePersistenceUnitInfo arg0) {

    if (addProps != null) {
        for (String k : addProps.keySet()) {
            String v = addProps.get(k);
            //System.out.println("HibernatePropsHelper: " + k + " = " + v);
            arg0.addProperty(k, v);
        }/*from w ww. ja v a2s.  c  o m*/
    }

}