ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: Strange problems with Custom Type Handler
Date Thu, 20 Jan 2005 21:35:09 GMT
Did you try putting the cth reference where I suggested?

Clinton

On Thu, 20 Jan 2005 14:33:44 -0700, Nathan Maves <Nathan.Maves@sun.com> wrote:
> here is my latest getter in the CTH
> 
>      public Object getResult(ResultGetter getter) throws SQLException {
>          if (getter.wasNull())
>              return null;
>          int value = getter.getInt();
>          Frequency frequency = Frequency.get(value);
>          return frequency;
>      }
> 
> when I run the query from sqlplus I get a 1 for the frequency_id field.
> 
> but in the code above I get a value of 0 from the getter object.
> 
> Nathan
> 
> On Jan 20, 2005, at 2:16 PM, Nathan Maves wrote:
> 
> > I tried that just now and not change.
> >
> >
> > On Jan 20, 2005, at 2:01 PM, Clinton Begin wrote:
> >
> >> <result column="frequency_id" property="frequency"
> >> typeHandler="reporting.viewer.dao.ibatis.FrequencyTypeHandler"/>
> >
> 
>

Mime
View raw message