Java Code Examples for org.springframework.data.annotation.Reference

The following examples show how to use org.springframework.data.annotation.Reference. These examples are extracted from open source projects. 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
public boolean isEntity() {

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

		// return false;

	}
 
Example 2
Source Project: spring-data-simpledb   Source File: ReflectionUtils.java    License: MIT License 5 votes vote down vote up
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 Project: spring-data-simpledb   Source File: ReflectionUtils.java    License: MIT License 4 votes vote down vote up
public static boolean isReference(Field field) {
	return field.getAnnotation(Reference.class) != null;
}