Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SAP HANA and Hibernate Support

Tags:

hibernate

hana

I have an existing Java application which uses Hibernate with DB2. My application has 40-45 tables in DB2.

We are planning to replace DB2 with SAP-HANA. In that case I would like to know your opinion on the following items:

  1. Is there Hibernate support with HANA? If yes, how stable is it for mid size Java application?

  2. What all roadblocks/ risks one should consider in migration?

  3. Any documentation or example for reference?

Please provide your recommendations.

like image 814
Dhams Avatar asked Mar 28 '14 16:03

Dhams


People also ask

What platforms does SAP HANA support?

SAP S/4HANA runs exclusively on the SAP HANA database, which—in turn—runs exclusively on the Linux® operating system (OS).

Does Hibernate use JDBC?

Hibernate and JPA-based applications do not eliminate the need for JDBC. When you use Hibernate, all database interactions still occur with the JDBC APIs. Hibernate and JPA are actually built on top of the JDBC API.

What is SAP Byol?

Bring Your Own Software and License The majority of SAP solutions that can be run on AWS use a bring-your-own-software and bring-your-own-license (BYOL) model. Running SAP systems on AWS doesn't require special or new SAP licenses.

Can sap run on cloud?

SAP provides access to an online repository of their latest products and solutions called the SAP Cloud Appliance Library. SAP Cloud Appliance Library is a fully automated deployment library that customers can use to rapidly deploy new SAP software on Google Cloud for non-production scenarios.


1 Answers

  1. Yes, it is supported. There is a Hibernate dialect for HANA available from version 4.3.0.CR1 (current stable is 4.3.5). From my personal experience, Hibernate and the dialect itself is stable, but you could have problems during the migration because some features are not supported by HANA, not by Hibernate. E.g., Auto increment is not supported, you are expected to use sequences instead. See optimise Hibernate Sequence ID generation.

  2. Besides HANA specifics like lack of auto increments, you could have complications with low insert speed into HANA when using Hibernate. The speed could, however, be increased by tuning batch size in the persistance.xml, e.g.

    <property name="hibernate.jdbc.batch_size" value="5000"/>
    
  3. Documentation is available here: http://help.sap.com/hana_platform

As a general notice, I would say that SAP HANA became much more stable within last year or two. However, I would still have a data replica or backup in the other database, and use HANA mainly for very fast analytics and queries, that are really a very strong side of HANA.

The migration process depends on each particular case. It could be painful, or it could be very easy. Generally, I think that it is almost always possible to find a workaround for any migration problem.

like image 128
Andrey Sapegin Avatar answered Nov 15 '22 11:11

Andrey Sapegin