https://github.com/artysta/java-hibernate-jpa-app
Simple CRUD like application using Hibernate JPA & Maven.
https://github.com/artysta/java-hibernate-jpa-app
Last synced: 6 months ago
JSON representation
Simple CRUD like application using Hibernate JPA & Maven.
- Host: GitHub
- URL: https://github.com/artysta/java-hibernate-jpa-app
- Owner: artysta
- Created: 2019-10-02T16:37:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-21T01:58:53.000Z (almost 4 years ago)
- Last Synced: 2024-12-29T10:43:02.755Z (over 1 year ago)
- Language: Java
- Size: 36.1 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# java-hibernate-jpa-app
Simple CRUD like application using **Hibernate ORM** & **Apache Maven**.
## #1 Install MySQL Server & create database
If you want this app work, you have to install **MySQL server** first.
To do that, you can use the command below (if you are using [Chocolatey](https://chocolatey.org/) software):
`choco install mysql`
Now you have to connect to the MySQL server...
`mysql -u root`
...and create database (**localdatabase** is the name of the database in this case):
`create database localdatabase;`
## #2 Install Apache Maven
Use the command below to install **Apache Maven**:
`choco install maven`
## #3 Run app
Install app using:
`mvn install`
Or if you have already compiled files:
`mvn clean install`
Run app:
`mvn exec:java -Dexec.mainClass="pl.adriankurek.main.App"`
App wont't work without MySQL Server.