Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arun-gupta/spring-hibernate-hsql
Spring Boot application using Hibernate with in-memory HSQL database
https://github.com/arun-gupta/spring-hibernate-hsql
database hibernate java maven spring spring-boot
Last synced: about 2 months ago
JSON representation
Spring Boot application using Hibernate with in-memory HSQL database
- Host: GitHub
- URL: https://github.com/arun-gupta/spring-hibernate-hsql
- Owner: arun-gupta
- License: apache-2.0
- Created: 2017-10-12T00:01:37.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-12T20:27:00.000Z (about 7 years ago)
- Last Synced: 2023-10-20T17:41:44.174Z (about 1 year ago)
- Topics: database, hibernate, java, maven, spring, spring-boot
- Language: Java
- Size: 8.79 KB
- Stars: 5
- Watchers: 3
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: readme.adoc
- License: LICENSE
Awesome Lists containing this project
README
= Spring Boot + Hibernate + H2 In-memory Database on Java 9
== Run the application
. Run the application:
+
```
mvn spring-boot:run
```
+
. Package the JAR:
+
```
mvn package
```== Create employees
```
curl -X POST -H "Content-Type: text/plain" -d "Leonard" http://localhost:8080
{"id":"1","status":"success"}
```== Get employees
```
curl http://localhost:8080/1
```== Check in HSQLDB
. Connect using http://localhost:8080/console
. Use JDBC URL `jdbc:h2:mem:app_db`
. Run the query `SELECT * FROM EMPLOYEE`