X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 488BE9FA2AD for ; Mon, 14 Aug 2006 11:06:52 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 45229-06 for ; Mon, 14 Aug 2006 11:06:39 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from perseverance.encs.concordia.ca (perseverance-96.encs.concordia.ca [132.205.96.94]) by postgresql.org (Postfix) with ESMTP id C51C69FB28E for ; Mon, 14 Aug 2006 11:06:39 -0300 (ADT) Received: from [132.205.47.225] (emilu@cacao.encs.concordia.ca [132.205.47.225]) by perseverance.encs.concordia.ca (8.13.7/8.13.7) with ESMTP id k7EE6bnN015006; Mon, 14 Aug 2006 10:06:38 -0400 Message-ID: <44E0836D.6030609@encs.concordia.ca> Date: Mon, 14 Aug 2006 10:06:37 -0400 From: Emi Lu Reply-To: emilu@encs.concordia.ca User-Agent: Thunderbird 1.5.0.4 (X11/20060516) MIME-Version: 1.0 To: David Gagnon CC: pgsql-jdbc@postgresql.org Subject: Re: SQLMAP IBATIS insert values from web forms to a money References: <44E07FD8.7090908@encs.concordia.ca> <44E08174.1060407@siunik.com> In-Reply-To: <44E08174.1060407@siunik.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.43 on perseverance.encs.concordia.ca at 2006/08/14 10:06:38 EDT X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.027 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200608/78 X-Sequence-Number: 15605 > > I think you should use BigDecimal ... > > I tried java.math.BigDeciaml. It does not work for me, I still get the exceptions: column "salary_amount" is of type money but expression is of type numeric > > 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 1: if posting/reading through Usenet, please send an appropriate >> subscribe-nomail command to majordomo@postgresql.org so that your >> message can get through to the mailing list cleanly >> >> >> > > > > ---------------------------(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