ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Butler" <jeffgbut...@gmail.com>
Subject Re: Calendar type problem
Date Sun, 17 Sep 2006 23:26:45 GMT
iBATIS does not have a built-in type handle for Calendar.  So it is not
supported "out of the box" by iBATIS.  You'll need to write a custom type
handler yourself (pretty easy to do).

There is some information about custom type handlers in the developer's
guide.

Jeff Butler



On 9/17/06, Okan Çetin <okancetin@gmail.com> wrote:
>
> Hi all;
>
> Table1
>         Column Name ||   Type
>         date                       Date
>
> class.java
>    private Calendar date1;
>    //getter setter methods for date..
>
> But it did not work. Calendar is not be supported by ibatis?  If i change
> date1 variable type to Date format, it works.
>
> private Date date1 > works
> private Calendar date1 > did not work
>
> Here is the exception :
>
> com.ibatis.common.jdbc.exception.NestedSQLException: --- The error
> occurred in net/aksakal/xml/Event.xml. --- The error occurred while applying
> a result map. --- Check the getEvents-AutoResultMap. --- Check the result
> mapping for the 'date' property. --- Cause:
> com.ibatis.sqlmap.client.SqlMapException: No type handler could be found
> to map the property 'date' to the column 'date'. One or both of the types,
> or the combination of types is not supported. Caused by:
> com.ibatis.sqlmap.client.SqlMapException : No type handler could be found
> to map the property 'date' to the column 'date'. One or both of the types,
> or the combination of types is not supported.
>
> Any  Thoughts?
>
> Thanks for reading,
> Okan
> --
> ~
> otomatik oluşturuldu:
> http://ocetin.net/log
> http://linux.beykent.edu.tr
>
Mime
View raw message