org.springframework.data.annotation.Reference Java Examples
The following examples show how to use
org.springframework.data.annotation.Reference.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DynamoDBPersistentPropertyImpl.java From spring-data-dynamodb with Apache License 2.0 | 5 votes |
public boolean isEntity() { return isAnnotationPresent(Reference.class);// Reference not Yet // Supported // return propertyDescriptor != null // && propertyDescriptor.getPropertyType().isAnnotationPresent( // DynamoDBTable.class); // return false; }
Example #2
Source File: ReflectionUtils.java From spring-data-simpledb with MIT License | 5 votes |
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; }
Example #3
Source File: ReflectionUtils.java From spring-data-simpledb with MIT License | 4 votes |
public static boolean isReference(Field field) { return field.getAnnotation(Reference.class) != null; }