The problem has something ot do with the way I'm mapping the "null"
result. If I change my query to
<select id="getAllOptins" resultMap="Optin">
SELECT o.*, GETDATE() optin_date FROM dbo.optins o
</select>
everything works fine (before I had "null optin_date"). So my
question, is, how do I construct the query and/or result mapping such
that I can put a null in my Java member field.
Thanks, - Dave
On Oct 4, 8:38 pm, Clinton Begin <
clinton.be...@gmail.com> wrote:
> Eww... don't change it to a java.sql.Date... :-)
>
> It is odd though... but try explicitly setting the jdbcType to TIMESTAMP.
>
> Otherwise it's likely a driver issue... which driver/DB are you using?
>
> Worst case scenario, you need a custom type handler.
>
> Cheers,
> Clinton
>
> 2010/10/4 Kimgisa <
magud...@gmail.com>