Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

commit #6

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

commit #6

wants to merge 2 commits into from

Conversation

codered23
Copy link

No description provided.

book.setId(id);
}
} catch (SQLException e) {
throw new RuntimeException("Can't add book to db ", e);
Copy link

Choose a reason for hiding this comment

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

image


@Override
public Optional<Book> findById(Long id) {
String query = "SELECT id, title, price " + "FROM books WHERE id = ?;";
Copy link

Choose a reason for hiding this comment

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

Suggested change
String query = "SELECT id, title, price " + "FROM books WHERE id = ?;";
String query = "SELECT id, title, price FROM books WHERE id = ?;";

Comment on lines 82 to 83
@Override
public boolean deleteById (Long id) {
Copy link

Choose a reason for hiding this comment

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

Suggested change
@Override
public boolean deleteById (Long id) {
@Override
public boolean deleteById (Long id) {

Comment on lines 67 to 68
@Override
public Book update (Book book) {
Copy link

Choose a reason for hiding this comment

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

Suggested change
@Override
public Book update (Book book) {
@Override
public Book update (Book book) {

@codered23 codered23 requested a review from Rommelua August 2, 2023 15:26
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.

3 participants