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:

http://forums.oracle.com/forums/thread.jspa?threadid=483903


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -