diff --git a/flyfish-web/src/main/java/com/flyfish/framework/beans/meta/BeanProperty.java b/flyfish-web/src/main/java/com/flyfish/framework/beans/meta/BeanProperty.java index e88e1f5..a3bc2c4 100644 --- a/flyfish-web/src/main/java/com/flyfish/framework/beans/meta/BeanProperty.java +++ b/flyfish-web/src/main/java/com/flyfish/framework/beans/meta/BeanProperty.java @@ -110,7 +110,7 @@ public class BeanProperty { DBRefValue dbRefValue = field.getAnnotation(DBRefValue.class); Document document = AnnotationUtils.findAnnotation(dbRefValue.value(), Document.class); if (null != document) { - property.prop("uri", document.value()); + property.prop("uri", document.collection()); } else { property.setType(BeanPropertyType.STRING); } @@ -133,7 +133,7 @@ public class BeanProperty { // 当存在db-ref时,解析为动态数据源 Document document = AnnotationUtils.findAnnotation(clazz, Document.class); if (null != document) { - property.prop("uri", document.value()); + property.prop("uri", document.collection()); } else { property.setType(BeanPropertyType.STRING); }