IBatis2.3.4 throws : java.sql.SQLException: Invalid column type when property is not set in POJO while inserting data.

2010-02-01 Thread rajnishp
Hi, IBatis throws SQL exception while inserting data using InlineParameterMap :-- The error occurred while applying a parameter map. --- Check the insertAllocationInstruction-InlineParameterMap. --- Check the parameter mapping for the 'userID' property. --- Cause: java.sql.SQLException: Invalid c

Re: IBatis2.3.4 throws : java.sql.SQLException: Invalid column type when property is not set in POJO while inserting data.

2010-02-01 Thread Larry Meadors
Your code would be useful. The code from the dev guide...not so much. :) Larry On Mon, Feb 1, 2010 at 2:51 AM, rajnishp wrote: > > Hi, > IBatis throws SQL exception while inserting data using InlineParameterMap > :-- > > The error occurred while applying a parameter map. > --- Check the insertA

Re: IBatis2.3.4 throws : java.sql.SQLException: Invalid column type when property is not set in POJO while inserting data.

2010-02-01 Thread Clinton Begin
Using null value replacement like #id:NUMERIC:-99# doesn't act like a default value. In fact, it acts quite the opposite way. It was originally implemented to allow nullable fields in the database to be mapped to primitive Java types (non-nullable). Because it was so hard to understand, it's