-
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
created Book entity and DAO implementation #389
base: main
Are you sure you want to change the base?
created Book entity and DAO implementation #389
Conversation
chertiav
commented
Jul 26, 2024
- 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 { |
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.
private static Book buildBook(ResultSet resultSet) throws SQLException { | |
private Book buildBook(ResultSet resultSet) throws SQLException { |
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.
Ok
} | ||
} | ||
|
||
private static void validateAffectedRows(int affectedRows) { |
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.
private static void validateAffectedRows(int affectedRows) { | |
private void validateAffectedRows(int affectedRows) { |
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.
Ok
- changed `validateAffectedRows` and `buildBook` methods to non-static.