Skip to content

Commit 3841492

Browse files
adding publisher adding save
1 parent a97fa5c commit 3841492

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/guru/springframework/spring6webapp/bootstrap/BootstrapData.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ public void run(String... args) throws Exception {
4848
ericSaved.getBooks().add(dddSaved);
4949
rodSaved.getBooks().add(noEJBSaved);
5050

51+
authorRepository.save(ericSaved);
52+
authorRepository.save(rodSaved);
53+
5154
System.out.println("In Bootstrap");
5255
System.out.println("Author Count: " + authorRepository.count());
5356
System.out.println("Book Count: " + bookRepository.count());

0 commit comments

Comments
 (0)