I want to connect to a SAP HANA database using Hibernate.
My test database consists of only 1 column based table:
Code:
PERSON (ID, FIRSTNAME, SURNAME)
and the corresponding Hibernate object ‘Person’.
When I try to execute a simple query using
Code:
aHibernateSession.createCriteria(Person.class).list()
I get the following exception:
Code:
java.lang.UnsupportedOperationException: org.hibernate.dialect.HANAColumnStoreDialect does not support resultsets via stored procedures
at org.hibernate.dialect.Dialect.getResultSet(Dialect.java:1524)
This exception appears using Hibernate 4.3 as well as using Hibernate 5.2, using HANAColumnStoreDialect as well as HANARowStoreDialect
When turning on the show-sql flag the only statement that is executed is
Code:
select this_.ID as ID1_0_0_, this_.FIRSTNAME as FIRSTNAME2_0_0_, this_.SURNAME as SURNAME3_0_0_ from PERSON this_
Why does Hibernate try to call a stored procedure here? Or do I miss something?