Does a property named "Id" exist on the Customer object or is it named "ID"?
Also check that you've defined a typeAlias node for Customer: <typeAlias alias="Customer" type="Company.Project.Domain.Customer, Company.Project" /> --- Marc Rodrigues <[EMAIL PROTECTED]> wrote: > > I did it > > <?xml version="1.0" encoding="UTF-8" ?> > <sqlMap namespace="Customer" > xmlns="http://ibatis.apache.org/mapping" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > > <resultMaps> > <resultMap id="customer-result" class="Customer" > > <result property="Id" column="CustomerID"/> > <result property="CompanyName" column="CompanyName"/> > <result property="ContactName" column="ContactName"/> > <result property="ContactTitle" > column="ContactTitle"/> > </resultMap> > </resultMaps> > > <statements> > <select id="GetAAAAA" resultMap="customer-result" > > select TOP 1 CustomerID, CompanyName, ContactName , > ContactTitle from customers > </select> > </statements> > > </sqlMap> > > > > But i still have this error message > > Une exception non g�r�e du type > 'IBatisNet.Common.Exceptions.ConfigurationException' s'est produite > dans > ibatisnet.datamapper.dll > > Informations suppl�mentaires : > - The error occurred while loading SqlMap. > - initialize result property: Id > - The error occurred in <sqlMap resource="Customer.xml" > xmlns="http://ibatis.apache.org/dataMapper" />. > - Check the Customer.customer-result. > > > 25/02/2006 12:22:50 [INFO] > IBatisNet.DataMapper.Configuration.DomSqlMapBuilder - Add property > "userid" value "sa" > 25/02/2006 12:22:50 [INFO] > IBatisNet.DataMapper.Configuration.DomSqlMapBuilder - Add property > "password" value "XXXX" > 25/02/2006 12:22:50 [INFO] > IBatisNet.DataMapper.Configuration.DomSqlMapBuilder - Add property > "database" value "Northwind" > 25/02/2006 12:22:50 [INFO] > IBatisNet.DataMapper.Configuration.DomSqlMapBuilder - Add property > "datasource" value "(local)" > 25/02/2006 12:22:50 [INFO] > IBatisNet.DataMapper.Configuration.DomSqlMapBuilder - Add property > "useStatementNamespaces" value "false" > Le programme '[1336] iBatisWnApp.exe' s'est arr�t� avec le code 0 > (0x0). > > > Gilles Bayon a �crit : > > > You set a CacheModel but the statements > > (UpdateAccountViaInlineParameters, UpdateAccountViaParameterMap) > are > > not defined > > > > Remove the cachemodel tag . > > > > > > > >

