Skip to content

GowthamChiriki/Library-Management-System-Java-Hibernate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library Management System (Java + Hibernate)

License: MIT

Table of Contents


Recent Updates

Overview

This is a console-based Library Management System that supports multiple user roles: Admin, Librarian, and Member.
It allows managing books, book copies, users, transactions, and reservations using Java and Hibernate ORM for persistence with MySQL.


Features

  • 📖 Book Management – Add, update, delete, and view books.
  • 👤 User Management – Multiple types of users (Admin, Librarian, Members).
  • 🔄 Transaction Handling – Issue and return books with due dates.
  • Reservation System – Reserve books if they are already borrowed.
  • 📧 Email Notifications
    • Notify users when reserved books are available.
    • Send issue & return confirmation emails.
    • Daily reminder emails for due dates (fine applied after deadline).
  • Automated Reminder Service – Runs every day at 9 AM and notifies users about due dates.

Admin

  • Create, update, and delete users.
  • Add, update, and delete books.
  • View all transactions and fines.
  • Role-based access control.

Librarian

  • Issue and return books.
  • Manage active transactions for members.
  • Check availability of book copies.

Member

  • Search books by title or author.
  • Borrow and return books.
  • View own transactions and fines.
  • Manage reservations.

Technology Stack

  • Language: Java 17+
  • ORM: Hibernate
  • Database: MySQL
  • Build Tool: Maven
  • Other Libraries: JPA, JDBC, Lombok (optional)

Setup & Installation

  1. Clone the repository:
git clone https://github.com/GowthamChiriki/Library-Management-System-Java-Hibernate.git
cd Library-Management-System-Java-Hibernate
  1. Setup MySQL Database:
  • Create a database library_db.
  • Update the HibernateUtil.java file with your database credentials.
  1. Run the application:
  • Open LibraryApp.java in your IDE.
  • Run as a Java Application.
  1. Default Admin Credentials:

Usage:

Console-driven menu system:

  • Admin: Manage users and books, view transactions.
  • Librarian: Issue/return books, view active transactions.
  • Member: Search books, borrow/return, check fines, manage reservations.

Database Schema

  • Users: id, name, email, password, role
  • Books: id, title, author, isbn, category, copiesCount
  • BookCopies: id, book_id, status (AVAILABLE/ISSUED)
  • Transactions: id, user_id, book_copy_id, issue_date, due_date, return_date, fine_amount, status (ACTIVE/RETURNED)
  • Reservations: id, user_id, book_id, reservation_date, status

Future Improvements

  • CSV import/export for bulk book and user management.
  • GUI or Web interface with Spring Boot + Thymeleaf / React.
  • Email notifications for due dates and reservations.
  • Advanced reporting dashboard for fines, popular books, and overdue items.
  • API integration for book metadata (ISBN, author, category) fetching.

Contributing

  • Fork the repository.
  • Create a feature branch (git checkout -b feature/YourFeature).
  • Commit your changes (git commit -m 'Add new feature').
  • Push to the branch (git push origin feature/YourFeature).
  • Open a Pull Request.

License

  • This project is licensed under the MIT License.

Author

MIT License

Copyright (c) 2025 Gowtham Chiriki

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Console-based Library Management System in Java with Hibernate supporting Admin, Librarian, and Member roles.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages