ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Okan Çetin" <okance...@gmail.com>
Subject Calendar type problem
Date Sun, 17 Sep 2006 21:56:49 GMT
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