File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
HibernateSpringBootManyToManyBidirectional/src/main Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public static void main(String[] args) {
2020 @ Bean
2121 public ApplicationRunner init () {
2222 return args -> {
23- bookstoreService .addAuthorsWithBooks ();
23+ bookstoreService .insertAuthorsWithBooks ();
2424 };
2525 }
2626}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ public BookstoreService(AuthorRepository authorRepository) {
1717 }
1818
1919 @ Transactional
20- public void addAuthorsWithBooks () {
20+ public void insertAuthorsWithBooks () {
2121
2222 Author alicia = new Author ();
2323 alicia .setName ("Alicia Tom" );
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ spring.datasource.password=root
55spring.jpa.hibernate.ddl-auto =create
66spring.jpa.show-sql =true
77
8- spring.jpa.properties.hibernate.dialect =org.hibernate.dialect.MySQL5Dialect
8+ spring.jpa.properties.hibernate.dialect =org.hibernate.dialect.MySQL8Dialect
99
1010spring.jpa.open-in-view =false
You can’t perform that action at this time.
0 commit comments