Performance Zone is brought to you in partnership with:

Computer Science Engineer having more than 16 years of experience, predominantly in the Enterprise Product Development Space. Professionally started with LabWindows, then to X-Windows/Motif and landed in using Java. Primitive experience in VC++ and .Net. Making hands dirty with DSLs in the free time (?) For more about me, visit http://jagannathan.info Jagannathan is a DZone MVB and is not an employee of DZone and has posted 5 posts at DZone. You can read more from them at their website. View Full User Profile

Resolving a HSQLDB Exception in Hibernate 4

01.24.2013
| 4050 views |
  • submit to reddit

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.

<dependency>
<groupId>hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>1.8.0.10</version>
</dependency>

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:

<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>2.2.8</version>
</dependency>

And it started working!


Published at DZone with permission of Jagannathan Asokan, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)