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
Optional Elements Modifier and Type Optional Element Description Class<? extends com.fasterxml.jackson.databind.JsonDeserializer>
contentUsingDeserializer
Exposes the JsonDeserialize annotation on the field in the projection with thecontentUsing
parameter.Class<? extends com.fasterxml.jackson.databind.JsonSerializer>
contentUsingSerializer
Exposes the JsonSerialize annotation on the field in the projection with thecontentUsing
parameter.boolean
ignore
Whether or not to include a field from a domain class into the projectionClass<? extends com.fasterxml.jackson.databind.KeyDeserializer>
keyUsingDeserializer
Exposes the JsonDeserialize annotation on the field in the projection with thekeyUsing
parameter.Class<? extends com.fasterxml.jackson.databind.JsonSerializer>
keyUsingSerializer
Exposes the JsonSerialize annotation on the field in the projection with thekeyUsing
parameter.boolean
responseOnly
Whether or not this field should be marked as part of the response only.Class<? extends com.fasterxml.jackson.databind.JsonDeserializer>
usingDeserializer
Exposes the JsonDeserialize annotation on the field in the projection with theusing
parameter.Class<? extends com.fasterxml.jackson.databind.JsonSerializer>
usingSerializer
Exposes the JsonSerialize annotation on the field in the projection with theusing
parameter.
-
-
-
-
responseOnly
boolean responseOnly
Whether 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> usingSerializer
Exposes 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> contentUsingSerializer
Exposes 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> keyUsingSerializer
Exposes 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> usingDeserializer
Exposes 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> contentUsingDeserializer
Exposes 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> keyUsingDeserializer
Exposes the JsonDeserialize annotation on the field in the projection with thekeyUsing
parameter.- See Also:
JsonDeserialize.keyUsing()
- Default:
- com.fasterxml.jackson.databind.KeyDeserializer.None.class
-
-