org.springframework.batch.item.database.JpaItemWriter Java Examples
The following examples show how to use
org.springframework.batch.item.database.JpaItemWriter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BatchJobConfiguration.java From patient-batch-loader with GNU General Public License v3.0 | 5 votes |
@Bean public Step step(ItemReader<PatientRecord> itemReader, Function<PatientRecord, PatientEntity> processor, JpaItemWriter<PatientEntity> writer) throws Exception { return this.stepBuilderFactory .get(Constants.STEP_NAME) .<PatientRecord, PatientEntity>chunk(2) .reader(itemReader) .processor(processor) .writer(writer) .build(); }
Example #2
Source File: ItemReaderWriterConfig.java From batchers with Apache License 2.0 | 4 votes |
@Bean public JpaItemWriter<TaxCalculation> taxCalculatorItemWriter() { JpaItemWriter<TaxCalculation> employeeJpaItemWriter = new JpaItemWriter<>(); employeeJpaItemWriter.setEntityManagerFactory(persistenceConfig.entityManagerFactory()); return employeeJpaItemWriter; }
Example #3
Source File: ItemReaderWriterConfig.java From batchers with Apache License 2.0 | 4 votes |
@Bean public JpaItemWriter<PayCheck> wsCallItemWriter() { JpaItemWriter<PayCheck> employeeJpaItemWriter = new JpaItemWriter<>(); employeeJpaItemWriter.setEntityManagerFactory(persistenceConfig.entityManagerFactory()); return employeeJpaItemWriter; }
Example #4
Source File: ItemReaderWriterConfig.java From batchers with Apache License 2.0 | 4 votes |
@Bean public JpaItemWriter<Employee> generatePDFItemWriter() { JpaItemWriter<Employee> employeeJpaItemWriter = new JpaItemWriter<>(); employeeJpaItemWriter.setEntityManagerFactory(persistenceConfig.entityManagerFactory()); return employeeJpaItemWriter; }
Example #5
Source File: ItemReaderWriterConfig.java From batchers with Apache License 2.0 | 4 votes |
@Bean public JpaItemWriter<TaxCalculation> taxCalculatorItemWriter() { JpaItemWriter<TaxCalculation> employeeJpaItemWriter = new JpaItemWriter<>(); employeeJpaItemWriter.setEntityManagerFactory(persistenceConfig.entityManagerFactory()); return employeeJpaItemWriter; }
Example #6
Source File: ItemReaderWriterConfig.java From batchers with Apache License 2.0 | 4 votes |
@Bean public JpaItemWriter<PayCheck> wsCallItemWriter() { JpaItemWriter<PayCheck> employeeJpaItemWriter = new JpaItemWriter<>(); employeeJpaItemWriter.setEntityManagerFactory(persistenceConfig.entityManagerFactory()); return employeeJpaItemWriter; }
Example #7
Source File: ItemReaderWriterConfig.java From batchers with Apache License 2.0 | 4 votes |
@Bean public JpaItemWriter<Employee> generatePDFItemWriter() { JpaItemWriter<Employee> employeeJpaItemWriter = new JpaItemWriter<>(); employeeJpaItemWriter.setEntityManagerFactory(persistenceConfig.entityManagerFactory()); return employeeJpaItemWriter; }