Adds a new repository implementation fragment overriding out-of-the-box behavior of JpaTrackableRepository
-
Show concrete fragment contribution example overriding
JpaTrackableRepository
methods forJpaProductRepository
-
Demonstrate the use of
JpaTrackableRepositoryDelegateSupplier
to use in the fragment for extension via composition -
Builds On : 00200-productExtensionComplexFieldJson
-
Create spring boot autoconfiguration class
RepositoryCustomizationOverride
, which will be referenced from META-INF/spring.factories -
Declare the
JpaTrackableRepositoryDelegateHelper
bean for access to the Broadleaf repository -
Create a new concrete repository fragment (
DefaultMyAutoCoProductRepositoryOverride
) and an associated interface -
Override (or add new) methods in the fragment
-
Declare a bean for the concrete fragment in the autoconfiguration class
-
Declare a
RepositoryContribution
bean in the autoconfiguration class, registering the new fragment with Broadleaf’s out-of-the-box repository