This project is a Library Management System built using Java Spring Boot. It allows users to manage a library, including tracking book information, managing member records, and loaning books.
git clone <repository-url>
cd grupi3-library-management
application.properties
file in src/main/resources
with your database configuration.mvn clean install
mvn spring-boot:run
http://localhost:8080
.This project is licensed under the MIT License.
1.Model / Entity 2. DTO + Validation ...
1.Model / Entity
DTO + Validation
Repository
Mapper
Service
Controller / RestController
Thymeleaf+HTML / Javascript + HTML
1.Controller -> @GetMapping, @PostMapping -> @Valid, @PathVariable, @RequestParam, @ModelAttribute, @SessionAttribute, RedirectAttributes, HttpServlerRequest & Response
Thymeleaf tagjet e thymeleaf th:block, th:inline, attribut th:id, th:if, .... th:each
Models / Entities @Entity, @Table, @Id, @Column, @GeneratedValue
Repositories extends JpaRepository, findAllBy.... -> List<T> findBy .... -> Optional<T>, T countBy... INT, LONG
Services - Interface, Implmentations (@Service)
Components & Configurations FileHelper, FileHelperImpl ->
DTO -Validmet - objektet komunikuese me CLIENT <- ->
Mappers
Password Encoding
@OneToMany, @ManyTonOne, ... @OneToOne and @ManyToMany
Cookies & Session Cookie -> CLIENT ne file (db te browserit) Session -> Server ne memorie
DTOs -> qe kena me i kthy ne client (front-end) ose qekemi me i pranu
Mapper -> logjiken se qysh kemi me i konvertu Entity ne DTO dhe DTO ne Entity
Repository -> edhe cilat metoda tjera ndihmese me ishtu me logjiken findAll...List<T> findBy...Optional<T> ose veq T
Service
Controller / RestController
Thymeleaf (backend-HTML) apo (frontend HTML + JavaScript)
Siguria (Sessions + Cookie) Shumicen e rasteve kemi me ndjek interface + implementim service interface, service implementim mapper interface, mapper implementim
Thank you for providing the overview of your Library Management System project. I understand you're using Java Spring Boot with various technologies like Spring Data JPA, Hibernate, Thymeleaf, and PostgreSQL. Let's start implementing the system based on the structure you've outlined.
Let's begin with creating the basic entities for the Library Management System. We'll create entities for Book, Member, and Loan.
This completes the basic structure of our Library Management System. We've created entities, DTOs, repositories, services, and controllers for Books, Members, and Loans.
To complete the application, you would need to:
application.properties
.Would you like me to elaborate on any of these aspects or add any specific features to the system?
I'd be happy to help you organize your Spring Boot project for a Library Management System. Based on the information you provided, I'll create a structured project layout and explain each component. This will help you create a well-organized and maintainable application.
Let's start by creating the project structure:
src/
├── main/
│ ├── java/
│ │ └── com/
│ │ └── example/
│ │ └── librarymanagementsystem/
│ │ ├── config/
│ │ ├── controller/
│ │ ├── dto/
│ │ ├── exception/
│ │ ├── mapper/
│ │ ├── model/
│ │ ├── repository/
│ │ ├── service/
│ │ │ └── impl/
│ │ ├── util/
│ │ └── LibraryManagementSystemApplication.java
│ ├── resources/
│ │ ├── static/
│ │ │ ├── css/
│ │ │ └── js/
│ │ ├── templates/
│ │ └── application.properties
│ └── webapp/
│ └── WEB-INF/
└── test/
└── java/
└── com/
└── example/
└── librarymanagementsystem/
Now, let's go through each component and create the necessary files:
This structure should give you a great starting point for your Library Management System. Let me know if you need any further assistance or explanations!