Class EclipseStoreDataImporterComponent

java.lang.Object
software.xdev.spring.data.eclipse.store.importer.EclipseStoreDataImporterComponent

@Component @Lazy public class EclipseStoreDataImporterComponent extends Object
Imports entities from EntityManagerFactorys into the EclipseStore storage.
  • Constructor Details

    • EclipseStoreDataImporterComponent

      public EclipseStoreDataImporterComponent(EclipseStoreClientConfiguration configuration, org.springframework.context.ApplicationContext applicationContext)
  • Method Details

    • importData

      public List<SimpleEclipseStoreRepository<?,?>> importData()
      Imports entities from all EntityManagerFactorys 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 SimpleEclipseStoreRepository for the specific entities.