Example usage for org.hibernate.proxy.map MapProxyFactory MapProxyFactory

List of usage examples for org.hibernate.proxy.map MapProxyFactory MapProxyFactory

Introduction

In this page you can find the example usage for org.hibernate.proxy.map MapProxyFactory MapProxyFactory.

Prototype

MapProxyFactory

Source Link

Usage

From source file:org.openbravo.dal.core.OBDynamicTuplizer.java

License:Open Source License

@Override
protected ProxyFactory buildProxyFactory(PersistentClass thePersistentClass, Getter idGetter, Setter idSetter) {
    ProxyFactory pf = new MapProxyFactory();
    try {/*w  ww .j  a  va 2s .  co  m*/
        pf.postInstantiate(getEntityName(), null, null, null, null, null);
    } catch (final HibernateException he) {
        log.warn("could not create proxy factory for:" + getEntityName(), he);
        pf = null;
    }
    return pf;
}