Search in sources :

Example 1 with BLCFieldUtils

use of org.broadleafcommerce.common.util.BLCFieldUtils in project BroadleafCommerce by BroadleafCommerce.

the class FieldManager method getField.

public Field getField(Class<?> clazz, String fieldName) throws IllegalStateException {
    DynamicEntityDao dynamicEntityDao = getPersistenceManager(clazz).getDynamicEntityDao();
    SessionFactory sessionFactory = dynamicEntityDao.getDynamicDaoHelper().getSessionFactory((HibernateEntityManager) dynamicEntityDao.getStandardEntityManager());
    BLCFieldUtils fieldUtils = new BLCFieldUtils(sessionFactory, true, dynamicEntityDao.useCache(), dynamicEntityDao.getEjb3ConfigurationDao(), entityConfiguration, dynamicEntityDao.getDynamicDaoHelper());
    return fieldUtils.getField(clazz, fieldName);
}
Also used : SessionFactory(org.hibernate.SessionFactory) BLCFieldUtils(org.broadleafcommerce.common.util.BLCFieldUtils) DynamicEntityDao(org.broadleafcommerce.openadmin.server.dao.DynamicEntityDao)

Aggregations

BLCFieldUtils (org.broadleafcommerce.common.util.BLCFieldUtils)1 DynamicEntityDao (org.broadleafcommerce.openadmin.server.dao.DynamicEntityDao)1 SessionFactory (org.hibernate.SessionFactory)1