Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/petarmilunovic/hibernate-demo
Java application that uses Hibernate for database operations, with a graphical user interface (GUI) built using JavaFX.
https://github.com/petarmilunovic/hibernate-demo
fxml hibernate java javafx mysql
Last synced: about 2 months ago
JSON representation
Java application that uses Hibernate for database operations, with a graphical user interface (GUI) built using JavaFX.
- Host: GitHub
- URL: https://github.com/petarmilunovic/hibernate-demo
- Owner: petarmilunovic
- License: gpl-2.0
- Created: 2024-08-17T17:06:58.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-22T18:56:08.000Z (5 months ago)
- Last Synced: 2024-10-13T18:21:10.597Z (3 months ago)
- Topics: fxml, hibernate, java, javafx, mysql
- Language: Java
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Hibernate GUI Demo Application
### Overview
Simple Java application that demonstrates the use of Hibernate for ORM (Object-Relational Mapping) to interact with a MySQL database. The application includes a graphical user interface (GUI) built using JavaFX.### Features
- Integrates with a MySQL database using Hibernate
- Supports basic database operations such as adding, updating, and deleting users
- Provides a user-friendly interface for interacting with the database### Prerequisites
Before running the application, ensure you have the following:
- An empty MySQL database set up, which Hibernate will use to create the necessary tables
- JDBC driver and Hibernate library configured in your project### Setup Instructions
1. Clone the Repository:
```bash
git clone https://github.com/petarmilunovic/hibernate-demo.git
cd hibernate-demo2. Add dependencies:
- The repository already contains a pom.xml file with all necessary dependencies, including Hibernate and JavaFX
- If you're not using Maven, download the required libraries [JDBC](https://downloads.mysql.com/archives/c-j/), [Hibernate](https://hibernate.org/orm/releases/6.6/#get-it) and add JAR files to your project's classpath
3. Configure Database Connection:
- Create an empty MySQL database
- Update the hibernate.cfg.xml file in the resources folder with your database connection details and credentials4. Run the Application:
- Compile and run the application from your IDE
- Use the GUI to perform CRUD operations on the database