Re: SQLMAP IBATIS insert values from web forms to a money type column

Lists: pgsql-sql
From: Emi Lu <emilu(at)encs(dot)concordia(dot)ca>
To: pgsql-sql(at)postgresql(dot)org
Subject: SQLMAP IBATIS insert values from web forms to a money type column
Date: 2006-08-14 13:49:29
Message-ID: 44E07F69.4050205@encs.concordia.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-sql

Hello,

I am using SQLMAP ibatis to do DB insertion for a webapplication.

In my sqlmap.xml file, I was trying to insert values into a table with
one col (type is Money), but in java, I could not find Money type.

Does someone knows about ibatis how to make values got from the web form
to be inserted into money type column through IBATIS ?

Thanks a lot!


From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: SQLMAP IBATIS insert values from web forms to a money type column
Date: 2006-08-14 14:34:10
Message-ID: 20060814143410.GA19548@phlogiston.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-sql

The money type is deprecated. Use numeric with two places.

A

On Mon, Aug 14, 2006 at 09:49:29AM -0400, Emi Lu wrote:
> Hello,
>
> I am using SQLMAP ibatis to do DB insertion for a webapplication.
>
> In my sqlmap.xml file, I was trying to insert values into a table with
> one col (type is Money), but in java, I could not find Money type.
>
> Does someone knows about ibatis how to make values got from the web form
> to be inserted into money type column through IBATIS ?
>
> Thanks a lot!
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match

--
Andrew Sullivan | ajs(at)crankycanuck(dot)ca
When my information changes, I alter my conclusions. What do you do sir?
--attr. John Maynard Keynes