Skip to content

Commit 2df63b5

Browse files
Batch inserts via EntityManager
1 parent a91d15f commit 2df63b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

HibernateSpringBootBatchInsertsEntityManager/src/main/java/com/bookstore/MainApplication.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
@SpringBootApplication
1010
public class MainApplication {
1111

12-
private final BookstoreService authorService;
12+
private final BookstoreService bookstoreService;
1313

14-
public MainApplication(BookstoreService authorService) {
15-
this.authorService = authorService;
14+
public MainApplication(BookstoreService bookstoreService) {
15+
this.bookstoreService = bookstoreService;
1616
}
1717

1818
public static void main(String[] args) {
@@ -22,7 +22,7 @@ public static void main(String[] args) {
2222
@Bean
2323
public ApplicationRunner init() {
2424
return args -> {
25-
authorService.batchAuthors();
25+
bookstoreService.batchAuthors();
2626
};
2727
}
2828
}

0 commit comments

Comments
 (0)