ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Potter, Christopher" <Christopher.Pot...@nfsmt.com>
Subject RE: Question resultMap
Date Thu, 28 Sep 2006 14:39:20 GMT
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"

    <typeAlias alias="Person" type="DAL.Entities.Person, DAL" />
    <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" />


    <select id="selectAll" resultMap="selectResult">
      FROM Person


I am getting the following error

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

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


View raw message