https://github.com/hernancerm/hibernate-5-crud
Demo of a simple CRUD using Hibernate (without Spring).
https://github.com/hernancerm/hibernate-5-crud
Last synced: 11 months ago
JSON representation
Demo of a simple CRUD using Hibernate (without Spring).
- Host: GitHub
- URL: https://github.com/hernancerm/hibernate-5-crud
- Owner: hernancerm
- Created: 2021-12-01T13:47:01.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-01T15:56:39.000Z (over 4 years ago)
- Last Synced: 2025-03-14T20:52:58.152Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 61.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hibernate 5 CRUD
## Setup
In [`persistence.xml`](./src/main/resources/persistence.xml), update the following:
- Database username and password.
Also, connect to your local MySQL server and execute [`schema.sql`](./sql/schema.sql) to create the database.
## Build and run
After doing the setup, execute:
If you are in Windows using CMD:
```text
gradlew.bat shadowJar && java -jar build\libs\hibernate-5-crud-1.0.0-SNAPSHOT-all.jar
```
If you are in Linux or macOS (or using GitBash in Windows):
```text
./gradlew shadowJar && java -jar build/libs/*-all.jar
```