File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 1- # SpringBoot JPA with HANA
1+ # SpringBoot JPA with SAP HANA
22A demo Java application leveraging Spring JPA with SAP HANA database.
33
44## How to build and run?
@@ -8,15 +8,24 @@ $ java -jar build/libs/springboot-jpa-hana-0.1.0.jar
88```
99Then open browser and visit http://localhost:8080
1010
11- ## How to run directly
11+ ## How to run directly?
1212``` bash
1313$ gradle bootRun
1414```
1515Then open browser and visit http://localhost:8080
1616
17- ## How to run with Docker
17+ ## How to run with Docker?
1818``` bash
1919$ docker build -t springboot-jpa-hana .
20- $ docker run -v 8080:8080 springboot-jpa-hana
20+ $ docker run -p 8080:8080 springboot-jpa-hana
2121```
2222Then open browser and visit http://localhost:8080
23+
24+ ## How to generate some test data?
25+ ``` bash
26+ $ curl -i localhost:8080/users/ -F name=John_Doe -F email=foo@bar.com -F locale=en
27+ ```
28+
29+ ## Caveats
30+ - The solution only works with HANA 2.0 because it requires ` select hibernate_sequence.nextval from sys.dummy ` when auto generates Id.
31+ - Append ` database=MDC_NAME&encrypt=true&validateCertificate=false ` to ` spring.datasource.url ` when applicable.
You can’t perform that action at this time.
0 commit comments