fssa-batch3 / fssa-batch3/sec_a_kishor.muruganandham__corejava_project_2
Borrow Module | View Borrows By User Feature
- Dominant language
- Java
- Stars
- 7
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
# View Borrow Process [By User]
### User Story
As a library user, I want to be able to view a list of all the books I have borrowed from the library. The system should provide me with a list that includes details such as the book titles, borrow dates, due dates, and any associated late fines. This way, I can keep track of the books I've borrowed and their status.
### 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
- getBorrowsByUser()
#### Service
- getBorrowsByUser()
#### Junit Test
- testValidGetBorrowsByUser()
- testInvalidGetBorrowsByUser()
### Estimation
- 2 hours
# Flowchart
```mermaid
graph TD
A[[Start]] --> B(User Initiates View Borrows By User Id)
B --> C[(Fetch Borrowed Books by User 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.