Skip to content

scottjjr/hibernate-hdb-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hibernate-hdb-demo

scott test Demo HDB with Hibernate

I keep getting queries about using Hibernate with SAP HANA. It is actually no
different to using Hibernate with any other database. Just configure the proper
dialect and you are finished.

$ mvn clean install -Djdbc.url=jdbc:sap://localhost:30215 -Djdbc.user=hibernate -Djdbc.password=hibernate

Or to test with the row store (the example uses auto-generated tables):

$ mvn clean install -Djdbc.url=jdbc:sap://localhost:30215 -Djdbc.user=hibernate -Djdbc.password=hibernate -Dhibernate.dialect=org.hibernate.dialect.HANARowStoreDialect

You will need to manually install the HDB JDBC driver into your local maven
repository.

It can be found here: HANA Driver. Then download the latest neo-java-web-sdk.

$ unzip neo-java-web-sdk-2.55.8.zip repository/.archive/lib/ngdbc.jar && mvn install:install-file -Dfile=repository/.archive/lib/ngdbc.jar -DgroupId=com.sap.db.hdb -DartifactId=com.sap.db.jdbc -Dversion=1.111.3.78bf6c853bb568fec93819498b2ec152c51cc958 -Dpackaging=jar && rm -r repository

About

Demo HDB with Hibernate

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%