I'm using Spring Jdbc 3.0.5 RELEASE, and we are using DB2 database as per our client's requirement. We want to run our tests against HSQL DB bcz we dont want to disturb the DB2 primary keys(which are implemented by creating sequences) with our tests.
And I've used "jdbc:embedded-database" tag in ApplicationContext.xml related to tests to create the required tables and inserted dummy data for tests (which ran successfully) .
But now obviously we are facing issues with the syntax of the queries we wrote in DB2 Dialect in the DAO Layer.
What is the best possible solution to overcome this problem?
And is there any 'Hibernate Criteria' like API that supports Spring jdbc to make our queries related to Joins(which are more painful when running against HSQL) run on any db
Thanks in advance