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

created Book entity and DAO implementation #389

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

Conversation

chertiav
Copy link

  • created Book entity, BookDao interface, and BookDaoImpl class with CRUD operations;
  • added database connection management through ConnectionManager and properties handling via PropertiesUtil.
  • Updated Main to test CRUD operations.

- created Book entity, BookDao interface, and BookDaoImpl class with CRUD operations;
- added database connection management through ConnectionManager and properties handling via PropertiesUtil.
- Updated Main to test CRUD operations.
}
}

private static Book buildBook(ResultSet resultSet) throws SQLException {

Choose a reason for hiding this comment

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

Suggested change
private static Book buildBook(ResultSet resultSet) throws SQLException {
private Book buildBook(ResultSet resultSet) throws SQLException {

Copy link
Author

Choose a reason for hiding this comment

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

Ok

}
}

private static void validateAffectedRows(int affectedRows) {

Choose a reason for hiding this comment

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

Suggested change
private static void validateAffectedRows(int affectedRows) {
private void validateAffectedRows(int affectedRows) {

Copy link
Author

Choose a reason for hiding this comment

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

Ok

- changed `validateAffectedRows` and `buildBook` methods to non-static.
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