Skip to content

Commit 9dbb77a

Browse files
committed
Many-to-many Set and Order By
1 parent f053b05 commit 9dbb77a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

HibernateSpringBootManyToManySetAndOrderBy/src/main/java/com/bookstore/service/BookstoreService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ public void fetchAuthorsOfBook() {
2222
Book book = bookRepository.findById(1L).orElseThrow();
2323
Set<Author> authorsSet = book.getAuthors();
2424

25-
System.out.println("Books ordered descending:\n" + authorsSet);
25+
System.out.println("Authors ordered descending by name:\n" + authorsSet);
2626
}
2727
}

0 commit comments

Comments
 (0)