A demo Java application leveraging Spring JPA with SAP HANA database.
$ gradle build
$ java -jar build/libs/springboot-jpa-hana-0.1.0.jarThen open browser and visit http://localhost:8080/swagger-ui.html
$ gradle bootRunThen open browser and visit http://localhost:8080/swagger-ui.html
$ docker build -t springboot-jpa-hana .
$ docker run -p 8080:8080 springboot-jpa-hanaThen open browser and visit http://localhost:8080/swagger-ui.html
- The solution only works with HANA 2.0 because it requires
select hibernate_sequence.nextval from sys.dummywhen auto generates Id. - Append
database=MDC_NAME&encrypt=true&validateCertificate=falsetospring.datasource.urlwhen applicable.