Search⌘ K
AI Features

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...

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:

  1. Add the Boolean available property to the Book document class.

  2. Add a method in the BookRepository ...