ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anthony" <anth...@mevspc.com>
Subject RE: Question resultMap
Date Fri, 29 Sep 2006 05:47:48 GMT
WOW. Can't believe I missed that. Works now! Thanks

-----Original Message-----
From: Potter, Christopher [mailto:Christopher.Potter@nfsmt.com] 
Sent: Thursday, September 28, 2006 7:39 AM
To: user-cs@ibatis.apache.org
Subject: RE: Question resultMap

Seems it may also be in the spelling of <resutMaps>.  Should be
<resultMaps>.  Notice the missing 'l'.



Confidentiality Notice:  This E-mail message, including any attachments,
is for the sole use of intended recipient(s) and may contain
confidential and privileged information.  Any unauthorized review, use,
disclosure or distribution is prohibited.  If you are not the intended
recipient, please contact the sender by reply email and destroy all
copies of the original message.

-----Original Message-----
From: Dorin Manoli [mailto:Dorin.Manoli@dataireland.ie] 
Sent: Thursday, September 28, 2006 8:34 AM
To: user-cs@ibatis.apache.org
Subject: RE: Question resultMap


Fault is in 
    <typeAlias alias="Person" type="DAL.Entities.Person, DAL" />

Try: <typeAlias alias="Person" type="DAL.Entities.Person, DAL.Entities"
/>
-----Original Message-----
From: Anthony [mailto:anthony@mevspc.com] 
Sent: Thursday, September 28, 2006 3:22 PM
To: user-cs@ibatis.apache.org
Subject: Question resultMap

Can anyone tell me what I am doing wrong? Here is my following mapping

<?xml version="1.0" encoding="utf-8" ?>
<sqlMap namespace="Person"
xmlns="http://ibatis.apache.org/mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <alias>
    <typeAlias alias="Person" type="DAL.Entities.Person, DAL" />
  </alias>
  
  <resutMaps>
    <resultMap id="selectResult" class="Person">
      <result property="Id" column="pid" />
      <result property="FirstName" column="firstname" />
      <result property="LastName" column="lastname" />
      <result property="Birthday" column="dob" />
    </resultMap>
  </resutMaps>

  
  <statements>

    <select id="selectAll" resultMap="selectResult">
      SELECT
      pid,
      firstname,
      lastname,
      dob  
      FROM Person
    </select>   
    
  </statements>

</sqlMap>


I am getting the following error

- The error occurred while loading SqlMap.
- loading select tag
- The error occurred in <sqlMap
resource="../../../DAL/Entities/MSSQL/Person.xml
" xmlns="http://ibatis.apache.org/dataMapper" />.
- Check the selectAll.

I know it must be something simple, can anyone help me?

Anthony




Mime
View raw message