Skip to content

Commit df2f1d6

Browse files
committed
Add caveats
1 parent 305e478 commit df2f1d6

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SpringBoot JPA with HANA
1+
# SpringBoot JPA with SAP HANA
22
A 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
```
99
Then open browser and visit http://localhost:8080
1010

11-
## How to run directly
11+
## How to run directly?
1212
```bash
1313
$ gradle bootRun
1414
```
1515
Then 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
```
2222
Then 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.

0 commit comments

Comments
 (0)