Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
Showing results for 
Search instead for 
Did you mean: 
Product and Topic Expert
Product and Topic Expert

What is Hibernate?

Hibernate is a popular object-relational mapping (ORM) framework for Java. The framework can be used to map Java objects from an object-oriented domain model to relational database tables. The framework's feature set also comprises query and retrieval capabilities which automatically translate between object-oriented Java code and relational SQL queries. Hibernate is an implementation of the Java Persistence API (JPA).

What's new?

Until now there was no support for SAP HANA Cloud included in the Hibernate framework. Starting with release 5.4.15 there is now a Hibernate dialect for the SAP HANA Cloud column store available. The dialect implements the full range of functions provided by SAP HANA Cloud including database-generated identity columns, sequences, table and column comments, and more.

How can I get started?

To get started you can follow the Hibernate Getting Started tutorial.

In addition to the Hibernate dependencies, you'll need to add the HANA JDBC driver to your dependency management descriptor (pom.xml if you're using Maven).

Your persistence.xml file should look something like this:
<persistence xmlns=""

<persistence-unit name="org.hibernate.tutorial.jpa">
Persistence unit for the JPA tutorial of the Hibernate Getting Started Guide


<property name="hibernate.dialect" value="org.hibernate.dialect.HANACloudColumnStoreDialect" />

<property name="javax.persistence.jdbc.driver" value="" />

<!-- Change this to match the connection data for your SAP HANA Cloud database -->
<property name="javax.persistence.jdbc.url" value="jdbc:sap://<my db>" />
<property name="javax.persistence.jdbc.user" value="MY_USER" />
<property name="javax.persistence.jdbc.password" value="SECRET" />

<property name="hibernate.show_sql" value="true" />
<property name="" value="update" />


If you don't have a SAP HANA Cloud instance yet, you can either set up an instance on the SAP Cloud Platform, or you can stay tuned for the free trial that will be available soon.

Happy coding!