Hello, I'm using hibernate 3.5 with Oracle 10g.
For creating object recived via sql requests I use AliasToBeanResultTransformer:
Code:
SQLQuery query = session.createSQLQuery(sql);
ResultTransformer tr = new AliasToBeanResultTransformer(SomeClass.class);
query.setResultTransformer(tr);
List results = query.list();
Class SomeClass has no mappings
The problem is that in this case Oracle DATE type transformed to java.
sql.Date. And times missed. (Despite in SomeClass corresponding fields declared as java.
util.Date).
So is there possibility to setup hibernate that Oracle DATE converted to java.
util.Date by default?