Skip to content

first implementation#3

Open
vanessaozogu wants to merge 3 commits intoih-java-08-25:mainfrom
vanessaozogu:main
Open

first implementation#3
vanessaozogu wants to merge 3 commits intoih-java-08-25:mainfrom
vanessaozogu:main

Conversation

@vanessaozogu
Copy link

No description provided.

@Query(value = "SELECT * FROM Books b ORDER BY b.releaseDate ASC", nativeQuery = true)
List<Books> findAllByReleaseDateOrderByReleaseDateDesc();

@Query(value = "SELECT * FROM BOOKS b WHERE b.author LIKE 'Van%' ", nativeQuery = true)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the Van in the query?

}
public void deleteById(int id) {
booksRepository.deleteById(id);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are missing the methods to call the custom queries

public void deleteById(@PathVariable int id) {
booksService.deleteById(id);
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same missing some endpoints

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants