Skip to content

Commit 568c56d

Browse files
committed
JPA HSQL One to one shared primary key
1 parent 171881e commit 568c56d

File tree

2 files changed

+2
-2
lines changed
  • jpa-hibernate-examples/jpa-hibernate-one-to-one-shared-primary-key-hsql

2 files changed

+2
-2
lines changed

jpa-hibernate-examples/jpa-hibernate-one-to-one-shared-primary-key-hsql/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<parent>
1313
<groupId>org.springframework.boot</groupId>
1414
<artifactId>spring-boot-starter-parent</artifactId>
15-
<version>1.3.5.RELEASE</version>
15+
<version>2.1.4.RELEASE</version>
1616
<relativePath/>
1717
</parent>
1818

jpa-hibernate-examples/jpa-hibernate-one-to-one-shared-primary-key-hsql/src/main/java/com/hellokoding/jpa/Application.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void run(String... strings) throws Exception {
3131
books.add(new Book("Book A", new BookDetail(49)));
3232
books.add(new Book("Book B", new BookDetail(59)));
3333
books.add(new Book("Book C", new BookDetail(69)));
34-
bookRepository.save(books);
34+
bookRepository.saveAll(books);
3535

3636
// fetch all books
3737
for (Book book : bookRepository.findAll()) {

0 commit comments

Comments
 (0)