-
Notifications
You must be signed in to change notification settings - Fork 438
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
Jdbc intro #19
base: main
Are you sure you want to change the base?
Jdbc intro #19
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before you create PR with your homework, you need to go through the checklist under the task and correct all the points described there. The mentor will not check the work until the checklist points are corrected
public interface BookDao { | ||
Book create(Book book); | ||
Optional<Book> findById(Long id); | ||
List<Book> findAll(); | ||
Book update(Book book); | ||
boolean deleteById(Long id); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public interface BookDao { | |
Book create(Book book); | |
Optional<Book> findById(Long id); | |
List<Book> findAll(); | |
Book update(Book book); | |
boolean deleteById(Long id); | |
} | |
public interface BookDao { | |
Book create(Book book); | |
Optional<Book> findById(Long id); | |
List<Book> findAll(); | |
Book update(Book book); | |
boolean deleteById(Long id); | |
} |
String sql = "SELECT * FROM book"; | ||
List<Book> books = new ArrayList<>(); | ||
try (Connection connection = ConnectionUtil.getConnection(); | ||
Statement statement = connection.createStatement()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see common mistakes
No description provided.