Class EclipseStoreDataImporterComponent
java.lang.Object
software.xdev.spring.data.eclipse.store.importer.EclipseStoreDataImporterComponent
Imports entities from
EntityManagerFactorys into the EclipseStore storage.-
Constructor Summary
ConstructorsConstructorDescriptionEclipseStoreDataImporterComponent(EclipseStoreClientConfiguration configuration, org.springframework.context.ApplicationContext applicationContext) -
Method Summary
Modifier and TypeMethodDescriptionImports entities from allEntityManagerFactorys that are available into the EclipseStore storage.
-
Constructor Details
-
EclipseStoreDataImporterComponent
public EclipseStoreDataImporterComponent(EclipseStoreClientConfiguration configuration, org.springframework.context.ApplicationContext applicationContext)
-
-
Method Details
-
importData
Imports entities from allEntityManagerFactorys that are available into the EclipseStore storage.This should be done only once. Otherwise entities may be imported multiple times.
After importing all the entities, the existing repositories should be converted to
EclipseStoreRepository.- Returns:
- all the newly created
SimpleEclipseStoreRepositoryfor the specific entities.
-