Over a million developers have joined DZone.

Resolving a HSQLDB Exception in Hibernate 4

DZone's Guide to

Resolving a HSQLDB Exception in Hibernate 4

· Performance Zone ·
Free Resource

Container Monitoring and Management eBook: Read about the new realities of containerization.

Recently I was trying to have a small working PoC on a multi-tenancy in Hibernate 4.

All the Hibernate 4 dependencies were declared in the pom.xml including the hsqldb.


When the application was tested, it threw the following exception:

org.hibernate.exception.GenericJDBCException: This function is not supported
Caused by: java.sql.SQLException: This function is not supported

Then, as usual, I got some references over the net and found that the problem is due to the hsqldb.

So I changed the dependency to the following:


And it started working!

Take the Chaos Out of Container Monitoring. View the webcast on-demand!


Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}