ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dorin Manoli" <Dorin.Man...@dataireland.ie>
Subject RE: Question resultMap
Date Thu, 28 Sep 2006 14:33:54 GMT

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