}
}
}
for(HasOneField field: orm.hasOneFields){
String fieldName = field.getName();
HasOne annotation = field.getAnnotation();
Object idValue = OrmInfo.getFieldValue(clasz, orm.id, this);
Object obj = OrmInfo.getFieldValue(clasz, fieldName, this);
if (obj != null){
Class<?> childClass = field.getTargetType();
OrmInfo.setFieldValue(childClass, annotation.foreignKey(), obj, idValue);
ActiveRecordBase ar = (ActiveRecordBase)obj;
if (ar.save() == false){
this.getErrors().addAll(ar.getErrors());
rollback(clasz);
return false;