/** 获取所有多对一关联且应用了view_List版型的属性例表. */ public static List<Property> getViewSearchPropertiesFromO2o(Class element) { List<Property> propertyList = new ArrayList<Property>(); // o2o relation List<Property> o2oList = EntityHelper.getAllOneToOneProperties(element, false); for (Property property : o2oList) { if (isSearch(property)) { propertyList.add(property); } } return propertyList; }