Introduction of new domain with auto projection output fine tuned through customization
-
Demonstrate customization of auto projection with the ExplicitProjectionFieldConfiguration annotation
-
Demonstrate removing a field from the projection
-
Demonstrate limiting a field to response only during update/replace
-
Demonstrate altering deserialization/serialization (e.g. to/from
MonetaryAmountfor aBigDecimalfield) -
Builds On : 01600-newDomainComplexField
-
Create spring boot autoconfiguration class
NewDomainFineTuneAutoProjection, which will be referenced from META-INF/spring.factories -
Setup domain (see 1600-newDomainComplexField)
-
Declare
@ExplicitProjectionFieldConfigurationannotation on one or more fields inChargingStationto fine tune how the projection is generated -
Declare
@EnableJpaTrackableFlowon the autoconfiguration class to setup the lifecycle plumbing for the new domain class -
Declare
@AutoConfigureBeforeon the autoconfiguration class to scan the new domain class before JPA processing