Challenge: Fine Calculation System
Explore how to implement a fine calculation system in a library application using Spring Data MongoDB. Learn to define MongoDB document classes, create repositories, perform custom queries, and enable auditing to track book loan activities and calculate fines accurately.
We'll cover the following...
We'll cover the following...
Implement a fine calculation system
Extend the existing library management system to include a fine calculation system on the book loans. We should be able to calculate the fine on the overdue book loans.
Tasks
In this challenge, complete the following tasks:
-
Add the
Booleanavailableproperty to theBookdocument class. -
Add a method in the
BookRepository...