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);
}
Aggregations