You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Yogender Singh Butola <yo...@outlinesys.com> on 2005/04/11 13:50:44 UTC
Problem with retrieving the data
Hi there,
I'm having a problem while retrieving the data from a column of the
table whose data type is 'bit'. The values stored are 0 or 1. However
when I try retrieve the values it returns true or false based on the
value.
How can I retrieve the values in the of 1 or 0.
Pls help. This is urgent.
Thanks in Advance.
With Regards,
Yogender Singh Butola.
(Software Developer)
<http://www.outlinesys.com/> Logo Outline Systems Inc.
Outline Systems India
Suite No-24, U&I Corporate Centre
47, ECHELON, Sector-32
Gurgaon
Haryana, INDIA
Mobile
+91-9818760744
Voice
+91-124-5035732
Fax
+91-124-5109055
E-Mail
<mailto:sameer@outlinesys.com?subject=Mail%20Footer%20Click>
yogender@outlinesys.com
Web
<http://www.outlinesys.com/> www.outlinesys.com
RE: Problem with retrieving the data
Posted by Narasimha Prasad <pr...@dbo2.com>.
You could try defining a resultMap to use.
<resultMap id=”myResults” class="resultBeanClass” >
<result property="blah" column="blah" jdbcType="TINYINT"/>
….
….
</resultMap>
Thanks,
Prasad
DBO2 Inc
-----Original Message-----
From: Yogender Singh Butola [mailto:yogender@outlinesys.com]
Sent: Monday, April 11, 2005 4:51 AM
To: ibatis-user-java@incubator.apache.org
Subject: Problem with retrieving the data
Hi there,
I’m having a problem while retrieving the data from a column of the table
whose data type is ‘bit’. The values stored are 0 or 1. However when I try
retrieve the values it returns true or false based on the value.
How can I retrieve the values in the of 1 or 0.
Pls help. This is urgent…
Thanks in Advance.
With Regards,
Yogender Singh Butola.
(Software Developer)
HYPERLINK "http://www.outlinesys.com/" \nLogo Outline Systems Inc.
Outline Systems India
Suite No-24, U&I Corporate Centre
47, ECHELON, Sector-32
Gurgaon
Haryana, INDIA
Mobile
+91-9818760744
Voice
+91-124-5035732
Fax
+91-124-5109055
E-Mail
HYPERLINK
"mailto:sameer@outlinesys.com?subject=Mail%20Footer%20Click"yogender@outline
sys.com
Web
HYPERLINK "http://www.outlinesys.com/" \nwww.outlinesys.com
--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.4 - Release Date: 4/6/2005
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.4 - Release Date: 4/6/2005