/** * This resource method performs manual projection for the root object entities and automatic projection for the * custom metadata. */ @Finder("rootManualMetadataAutomatic") public CollectionResult<Greeting, Greeting> rootManualMetadataAutomatic( final @PagingContextParam PagingContext ctx, final @ProjectionParam MaskTree rootObjectProjection, final @MetadataProjectionParam MaskTree metadataProjection, final @PagingProjectionParam MaskTree pagingProjection) throws CloneNotSupportedException { super.getContext().setProjectionMode(ProjectionMode.MANUAL); return new CollectionResult<Greeting, Greeting>(applyRootObjectProjection(rootObjectProjection), 2, CUSTOM_METADATA_GREETING); }
/** * This resource method performs manual projection for the root object entities and manual projection for the * custom metadata. Comments excluded since its combining behavior from the previous tests. */ @Finder("rootManualMetadataManual") public CollectionResult<Greeting, Greeting> rootManualMetadataManual( final @PagingContextParam PagingContext ctx, final @ProjectionParam MaskTree rootObjectProjection, final @MetadataProjectionParam MaskTree metadataProjection, final @PagingProjectionParam MaskTree pagingProjection) throws CloneNotSupportedException { super.getContext().setMetadataProjectionMode(ProjectionMode.MANUAL); super.getContext().setProjectionMode(ProjectionMode.MANUAL); return new CollectionResult<Greeting, Greeting>(applyRootObjectProjection(rootObjectProjection), 2, applyMetadataProjection(metadataProjection)); }
context.setProjectionMode(ProjectionMode.MANUAL); MaskTree mask = context.getProjectionMask(); if(mask != null && ignoreProjection == false)