use of org.eweb4j.orm.config.bean.ORMConfigBean in project eweb4j-framework by laiweiwei.
the class CheckConfigBean method checkORMProperty.
/**
* Check the Property part of ORM components configuration
*
* @param pList
* @param ormList
* @return
*/
public static String checkORMProperty(List<Property> pList, List<ORMConfigBean> ormList, String beanID, String xmlFile) {
String error = null;
ConfigBean cb = (ConfigBean) SingleBeanCache.get(ConfigBean.class.getName());
if ("true".equalsIgnoreCase(cb.getOrm().getOpen()) || "1".equals(cb.getOrm().getOpen())) {
StringBuilder sb = new StringBuilder();
if (!"".equals(sb.toString())) {
error = "\n<br /><b>" + xmlFile + "[bean id=" + beanID + "][property]:</b>\n" + sb.toString();
}
}
return error;
}
Aggregations