fssa-batch3 / fssa-batch3/sec_a_kishor.muruganandham__corejava_project_2
Borrow Module | View Borrows By Book Feature
- Dominant language
- Java
- Stars
- 7
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
# View Borrow Process [By Book]
### User Story
As a librarian, I want to be able to view a list of all the users who have borrowed a specific book from the library. The system should provide me with a list that includes details about each user, such as their names and borrowing dates. This way, I can monitor the usage of individual books in the library's collection.
### Task
- [x] Implement Data Access Object (DAO) Layer.
- [x] Implement Service Layer.
- [x] Create JUnit Test Cases.
- [x] Ensure that the tests cases are passing.
- [x] Write clear and concise comments in the code to explain complex logic.
#### DAO
- getBorrowsByBook()
#### Service
- getBorrowsByBook()
#### Junit Test
- testValidGetBorrowsByBook()
- testInvalidGetBorrowsByBook()
### Estimation
- 2 hours
# Flowchart
```mermaid
graph TD
A[[Start]] --> B(Librarian Initiates View Borrows by Book Id)
B --> C[(Fetch Borrowed Books by Book Id)]
C --> |Borrows Found| D([Display List of Borrows])
C --> |No Borrows Found| E{{Service Exception}}
D --> |Returns List of Borrows| F[[End]]
E --> G([Failed to Get Borrow Details])
G --> F
style D fill:#dfd,stroke:#333
style G fill:#fdd,stroke:#333
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.