DATAREST-1446 - Polishing.

Test cases.

Original pull request: #366.
This commit is contained in:
Oliver Drotbohm
2019-10-28 15:00:54 +01:00
parent 694079df04
commit 8689c1bb5b
2 changed files with 50 additions and 0 deletions

View File

@@ -64,6 +64,7 @@ public class DefaultExcerptProjector implements ExcerptProjector {
public boolean hasExcerptProjection(Class<?> type) {
ResourceMetadata metadata = mappings.getMetadataFor(type);
return metadata == null ? false : metadata.getExcerptProjection().isPresent();
}
}