ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Petr V." <greatman...@yahoo.com>
Subject Java.util.calendar to SQLType ??
Date Thu, 15 Jan 2009 20:13:09 GMT
Database schema has column of type Timestamp .

Java POJO has corresponding property defined as java.util.Calendar

Result Map is defined as

<resultMap class="Job" id="JobResult">
    <result column="STIME" jdbcType="TIMESTAMP"  javaType="java.util.Calendar" property="sTime"
/>
</resultMap>

I understand, I would have to define typeHandler to convert jdbc type to java Calendar.

I am wondering what should I define jdbcType is my sql map, should it be TimeStamp or should
it be of type date. What would be the better?

Thanks,

Petr


      
Mime
View raw message