What Jesper says.
To make your application portable (you have this requirement, because it has to work on two database brands),
you have to use standard sql in your queries.
You should not need to_date.
If you have a select statement, you can retrieve date values by using ResultSet.getDate() and family.
If you have to use a date in the where clause, you should use PreparedStatement, and bind your date parameters.
Making an app database independent is not trivial. It's hard when you use frameworks that are specialised to do it, let alone without such a framework.
Databases behave differently (subtile - or sometimes not so subtile) even if you only use standard sql statements.
I don't know if it is a good idea to test your application with HSQLDB only, when production runs on Oracle.
I would certainly also include tests with an Oracle database.