Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nnamanx/bookstore-jdbc
The Bookstore Spring Boot app is a web application built using the Spring Boot framework, designed to manage and showcase a collection of books. Users can search for specific titles and perform actions such as adding books. The application likely incorporates features such as database integration to store book information.
https://github.com/nnamanx/bookstore-jdbc
grad jdbc lombok postgr spring-boot
Last synced: about 2 months ago
JSON representation
The Bookstore Spring Boot app is a web application built using the Spring Boot framework, designed to manage and showcase a collection of books. Users can search for specific titles and perform actions such as adding books. The application likely incorporates features such as database integration to store book information.
- Host: GitHub
- URL: https://github.com/nnamanx/bookstore-jdbc
- Owner: nnamanx
- Created: 2023-12-02T14:27:11.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-06T18:58:23.000Z (about 1 year ago)
- Last Synced: 2023-12-06T19:39:48.662Z (about 1 year ago)
- Topics: grad, jdbc, lombok, postgr, spring-boot
- Language: Java
- Homepage:
- Size: 104 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bookstore-JDBC
The Bookstore Spring Boot app is a web application built using the Spring Boot framework, designed to manage and showcase a collection of books. Users can search for specific titles and perform actions such as adding books. The application likely incorporates features such as database integration to store book information.# Entity-Relationship (ER) Diagram
# Code Explanation
DatabaseConnection class: Purpose is to establishe a connection to the PostgreSQL database. databaseConnection(String databaseName, String user, String pass) method is used. Establishes a connection to the specified PostgreSQL database. After running the program, it prints a message indicating the success or failure of the connection.
AuthorService class: Purpose is to handle CRUD operations for the Author entity. insertAuthor(Author author) - Inserts a new author into the database.
getAuthorById(int authorId) - Retrieves an author by their ID.
updateAuthor(Author author) - Updates the details of an existing author.
deleteAuthor(int authorId, int status) - Deletes or updates the status of an author.
getAllAuthors() - Retrieves a list of all authors.BookService Class: Purpose is to handle CRUD operations for the Book entity.
insertBook(Book book) - Inserts a new book into the database.
getBookById(int bookId) - Retrieves a book by its ID.
updateBook(Book book) - Updates the details of an existing book.
deleteBook(int bookId, int status) - Deletes or updates the status of a book.
getAllBooks() - Retrieves a list of all books.# Metadata Access:
This class is responsible for providing access to essential database metadata. This includes methods for retrieving information about tables, columns, primary keys, and foreign keys. The purpose of the Metadata class is to facilitate the retrieval of critical database metadata, allowing the application to dynamically understand the structure and relationships within the database.# Transaction Management:
The purpose is to ensure atomicity and consistency of database transactions. Include transaction-related methods used in the application.