if (belongsTo != null){
BelongsToField field = new BelongsToField();
field.setName(f.getName());
field.setAnnotation(belongsTo);
field.setTargetType(f.getType());
if (belongsTo.foreignKey().equals("")){
OrmInfo targetOrm = OrmInfo.getOrmInfo(f.getType());
field.setForeignKey(targetOrm.table+"_id");
}
else{
field.setForeignKey(belongsTo.foreignKey());