Package io.micronaut.data.model
Class AssociationUtils
java.lang.Object
io.micronaut.data.model.AssociationUtils
Internal association utilities.
- Since:
- 1.0.0
- Author:
- graemerocher
-
Method Summary
Modifier and TypeMethodDescriptiongetJoinFetchPaths
(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata) Gets the join paths from the annotation metadata.getJoinPaths
(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata) Gets all the join paths from the annotation metadata.
-
Method Details
-
getJoinFetchPaths
public static Set<JoinPath> getJoinFetchPaths(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata) Gets the join paths from the annotation metadata.- Parameters:
annotationMetadata
- the annotation metadata- Returns:
- the join paths, if none defined and not of type FETCH then an empty set
-
getJoinPaths
public static Set<JoinPath> getJoinPaths(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata) Gets all the join paths from the annotation metadata.- Parameters:
annotationMetadata
- the annotation metadata- Returns:
- the join paths
-