I am using Oracle 10g with a Grails 1.3.2 application. I am targeting a legacy schema with all Date columns types used where time is stored. I believe I need to set the oracle.jdbc.V8Compatible property to true somewhere in order to use Groovy’s Sql.rows instance method (which uses ResultSet.getObject under the hood) to get java.sql.Timestamp objects with time components preserved instead java.sql.Date objects with time component truncated (see this). Where is the right / best place to set / how do I set the oracle.jdbc.V8Compatible property in a Grails application?
we use DataSource.groovy for development, and a JBoss JNDI configuration for production.
I abandoned the
Sql.rows/V8Compatibilityapproach and instead am just using a custom function: