ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abdel Olakara <olak...@gmail.com>
Subject Trouble with SQL SERVER 2005
Date Thu, 14 May 2009 19:29:33 GMT
Hi all,

 I am using Sql server 2005 with iBATIS in my project. I am using Microsoft
provided driver for my connectivity..here is my sqlMapConfig file:


  <transactionManager type="JDBC" commitRequired="false">
    <dataSource type="SIMPLE">
      <property name="JDBC.Driver"
      <property name="JDBC.ConnectionURL"
      <property name="JDBC.Username" value="sam"/>
      <property name="JDBC.Password" value="sam"/>
      <property name="JDBC.DefaultAutoCommit" value="true" />

  <sqlMap resource="myapp/models/Population.xml"/>
  <sqlMap resource="myapp/models/Region.xml"/>

There is no error as such in connecting and querying but the values are not
populated into the bean. here is my region.xml

<sqlMap namespace="Region">

  <resultMap id="RegionResult" class="myapp.models.Region">
    <result property="regionId" column="region_id"/>
    <result property="regionName" column="region_name"/>

    <select id="selectAllRegion" resultClass="myapp.models.Region">
        select region_id,region_name from Region

both reagion_id and region_name populated in the bean is null values.. where
as.. for my other object ir Population,  population_id comes up but other
values are null.
The values are available in DB and normal JDBC programming can retrive the

Can anybody give me a solution?

Thanks in advance,
Best Regrads,
Abdel Raoof Olakara

View raw message