Java 类org.springframework.data.annotation.Reference 实例源码

项目:spring-data-dynamodb    文件:DynamoDBPersistentPropertyImpl.java   
public boolean isEntity() {

        return isAnnotationPresent(Reference.class);// Reference not Yet
        // Supported
        // return propertyDescriptor != null
        // && propertyDescriptor.getPropertyType().isAnnotationPresent(
        // DynamoDBTable.class);

        // return false;

    }
项目:spring-data-simpledb    文件:ReflectionUtils.java   
public static List<String> getReferencedAttributeNames(Class<?> clazz) {
    List<String> referenceFields = new ArrayList<String>();

    for(Field eachField : clazz.getDeclaredFields()) {

        if(eachField.getAnnotation(Reference.class) != null) {
            referenceFields.add(eachField.getName());
        }
    }
    return referenceFields;
}
项目:spring-data-simpledb    文件:ReflectionUtils.java   
public static boolean isReference(Field field) {
    return field.getAnnotation(Reference.class) != null;
}