resultset - conflict with java.util.Date and java.sql.TimeStamp -
i facing unique problem.
i querying database field has datatype (in oracle) date . retrieving value resultset rs.getobject("mydate") . have 2 setups have identical configuration . on 1 setup when write rs.getobject("mydate").getclass() , geeting java.sql.timestamp , on setup returning java.util.date. problem facing when returns object of date ignoring time , returning date part.
i think behaviour can controlled using connection property:
oracle.jdbc.mapdatetotimestamp
see forum thread, instance:
Comments
Post a Comment