We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5aec79 commit 5e298eeCopy full SHA for 5e298ee
src/main/java/com/codesungrape/hmcts/BookAPI/service/BookService.java
@@ -41,7 +41,7 @@ public Book createBook(BookRequest request) {
41
42
Book savedBook = bookRepository.save(newBook);
43
44
- // Defensive check (even though it "shouldn't" happen)
+ // Defensive check (even though it "shouldn't" happen aka follows JPA contract)
45
if (savedBook == null) {
46
throw new IllegalStateException("Failed to save book - repository returned null");
47
}
0 commit comments