Annotation Type ExplicitProjectionFieldConfiguration
@Target(FIELD)
@Retention(RUNTIME)
@Documented
public @interface ExplicitProjectionFieldConfiguration
Control aspects of how the system will treat fields exposed in an auto generated projection.
- Author:
- Jeff Fischer
- See Also:
-
ProjectionFactory
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionClass<? extends com.fasterxml.jackson.databind.JsonDeserializer>
Exposes the JsonDeserialize annotation on the field in the projection with thecontentUsing
parameter.Class<? extends com.fasterxml.jackson.databind.JsonSerializer>
Exposes the JsonSerialize annotation on the field in the projection with thecontentUsing
parameter.boolean
Whether or not to include a field from a domain class into the projectionClass<? extends com.fasterxml.jackson.databind.KeyDeserializer>
Exposes the JsonDeserialize annotation on the field in the projection with thekeyUsing
parameter.Class<? extends com.fasterxml.jackson.databind.JsonSerializer>
Exposes the JsonSerialize annotation on the field in the projection with thekeyUsing
parameter.boolean
Whether or not this field should be marked as part of the response only.Class<? extends com.fasterxml.jackson.databind.JsonDeserializer>
Exposes the JsonDeserialize annotation on the field in the projection with theusing
parameter.Class<? extends com.fasterxml.jackson.databind.JsonSerializer>
Exposes the JsonSerialize annotation on the field in the projection with theusing
parameter.
-
Element Details
-
ignore
boolean ignoreWhether or not to include a field from a domain class into the projection- Returns:
- Whether or not to include the field
- Default:
- false
-
responseOnly
boolean responseOnlyWhether or not this field should be marked as part of the response only. Such fields will receive aJsonView
annotation targeting theResponseView
class. These fields will not be mapped into the incoming projection for REPLACE or UPDATE calls, but will be exposed on the JSON exiting the endpoint call.- Returns:
- Whether or not this field should be marked as part of the response only.
- Default:
- false
-
usingSerializer
Class<? extends com.fasterxml.jackson.databind.JsonSerializer> usingSerializerExposes the JsonSerialize annotation on the field in the projection with theusing
parameter.- See Also:
-
JsonSerialize.using()
- Default:
- com.fasterxml.jackson.databind.JsonSerializer.None.class
-
contentUsingSerializer
Class<? extends com.fasterxml.jackson.databind.JsonSerializer> contentUsingSerializerExposes the JsonSerialize annotation on the field in the projection with thecontentUsing
parameter.- See Also:
-
JsonSerialize.contentUsing()
- Default:
- com.fasterxml.jackson.databind.JsonSerializer.None.class
-
keyUsingSerializer
Class<? extends com.fasterxml.jackson.databind.JsonSerializer> keyUsingSerializerExposes the JsonSerialize annotation on the field in the projection with thekeyUsing
parameter.- See Also:
-
JsonSerialize.keyUsing()
- Default:
- com.fasterxml.jackson.databind.JsonSerializer.None.class
-
usingDeserializer
Class<? extends com.fasterxml.jackson.databind.JsonDeserializer> usingDeserializerExposes the JsonDeserialize annotation on the field in the projection with theusing
parameter.- See Also:
-
JsonDeserialize.using()
- Default:
- com.fasterxml.jackson.databind.JsonDeserializer.None.class
-
contentUsingDeserializer
Class<? extends com.fasterxml.jackson.databind.JsonDeserializer> contentUsingDeserializerExposes the JsonDeserialize annotation on the field in the projection with thecontentUsing
parameter.- See Also:
-
JsonDeserialize.contentUsing()
- Default:
- com.fasterxml.jackson.databind.JsonDeserializer.None.class
-
keyUsingDeserializer
Class<? extends com.fasterxml.jackson.databind.KeyDeserializer> keyUsingDeserializerExposes the JsonDeserialize annotation on the field in the projection with thekeyUsing
parameter.- See Also:
-
JsonDeserialize.keyUsing()
- Default:
- com.fasterxml.jackson.databind.KeyDeserializer.None.class
-