Class Associations
java.lang.Object
org.springframework.data.rest.webmvc.mapping.Associations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLinksFor(Association<? extends PersistentProperty<?>> association, Path path) Returns the links to render for the givenAssociation.@Nullable ResourceMetadatagetMetadataFor(Class<?> type) Returns theResourceMetadatafor the given type.booleanisIdExposed(PersistentEntity<?, ?> entity) booleanisLinkableAssociation(Association<? extends PersistentProperty<?>> association) Returns whether the givenAssociationis linkable.booleanisLinkableAssociation(PersistentProperty<?> property) Returns whether the given property is an association that is linkable.booleanisLookupType(PersistentProperty<?> property) Returns whether the type of the givenPersistentPropertyis configured as lookup type.
-
Constructor Details
-
Associations
-
-
Method Details
-
getMappings
-
getLinksFor
Returns the links to render for the givenAssociation.- Parameters:
association- must not be null.path- must not be null.- Returns:
-
getMetadataFor
Returns theResourceMetadatafor the given type.- Parameters:
type- must not be null.- Returns:
-
isLookupType
Returns whether the type of the givenPersistentPropertyis configured as lookup type.- Parameters:
property- must not be null.- Returns:
-
isIdExposed
-
isLinkableAssociation
Returns whether the givenAssociationis linkable.- Parameters:
association- must not be null.- Returns:
-
isLinkableAssociation
Returns whether the given property is an association that is linkable.- Parameters:
property- must not be null.- Returns:
-