if (-1 == attr.indexOf('.')) {
setValue(attr, value, entity);
} else {
String parentAttr = StringUtils.substring(attr, 0, attr.lastIndexOf('.'));
try {
ObjectAndType ot = initProperty(entity, entityName, parentAttr);
if (null == ot) {
logger.error("error attr:[" + attr + "] value:[" + value + "]");
continue;
}
// 属性也是实体类对象
if (ot.getType().isEntityType()) {
String foreignKey = ((EntityType) ot.getType()).getIdPropertyName();
if (attr.endsWith("." + foreignKey)) {
if (null == value) {
setValue(parentAttr, null, entity);
} else {
Object foreignValue = PropertyUtils.getProperty(entity, attr);