Hi Thorsten,

On 07 November 2007, 3:58:47 PM, Thorsten Elfert wrote:
>

Hi, 

I use Oracle 9i, JDK 5 and the latest iBatis Release. Whenever I read a date 
object out of oracle and map it into a java.util.Date attribute the time gets 
truncated. I tried already to set explicitly the javaType as java.util.Date or 
java.sql.Timestamp and the jdbcType as DATE in the sql-map but it does not 
solve the problem. What is the correct way to map a java.util.Date to the 
Oracle Date Object ? (In the database the date and time gets stored correctly) 


Try using the jdbcType as TIMESTAMP as the SQL DATE type only contains a date!
See "Dates and Times" here - 
http://www.oreilly.com/catalog/jentnut2/chapter/ch02.html.

-- 
/Gwyn

Reply via email to