Thank you for the answer. I've tried. But it send me the same thing. It works well in yours?
De : Clough, Samuel (USPC.PRG.Atlanta) [mailto:[EMAIL PROTECTED] Envoyé : lundi 11 juin 2007 13:39 À : [email protected] Objet : RE: Some problems Not really answering your question, but I would think you would use the generic form of these methods, i.e.: Person per mapper.QueryForObject<Person>("select-Person-ById", "x1"); ________________________________ From: Zheng WANG [mailto:[EMAIL PROTECTED] Sent: Monday, June 11, 2007 5:59 AM To: [email protected] Subject: Some problems Hello, I start to use ibatis.net. I've got some strange problems. Problem 1: When I write Person per = new Person(); mapper.QueryForObject("select-Person-ById", "x1", per); Everything is ok. But if I write Person per = mapper.QueryForObject("select-Person-ById", "x1") as Person; I've got PersoIBatis.Person..ctor() But I really have a constructor Person() for the class Person. Problem 2: In the XML for mapping, for class Person I write a XML Person.ibatis.xml, if I write <ParameterMaps> in the end(just before </sqlmap>). The xml is valid. But when I put it in somewhere else(at beginning in the end). The next element isn't valid. For example, <ParameterMaps> ........................ </ParameterMaps> <ResultMaps> ............................ </ResultMaps> I will have a message : Result maps is not valid in the name space http://ibatis.apache.org/mapping It seems ridiculous for me. There's an order. If someone have the solution, please send me a message. Thank you very much. ________________________________ Princeton Retirement Group, Inc - Important Terms This E-mail is not intended for distribution to, or use by, any person or entity in any location where such distribution or use would be contrary to law or regulation, or which would subject Princeton Retirement Group, Inc. or any affiliate to any registration requirement within such location. This E-mail may contain privileged or confidential information or may otherwise be protected by work product immunity or other legal rules. No confidentiality or privilege is waived or lost by any mistransmission. Access, copying or re-use of information by non-intended or non-authorized recipients is prohibited. If you are not an intended recipient of this E-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute any portion of this E-mail. The transmission and content of this E-mail cannot be guaranteed to be secure or error-free. Therefore, we cannot represent that the information in this E-mail is complete, accurate, uncorrupted, timely or free of viruses, and Princeton Retirement Group, Inc. cannot accept any liability for E-mails that have been altered in the course of delivery. Princeton Retirement Group, Inc. reserves the right to monitor, review and retain all electronic communications, including E-mail, traveling through its networks and systems (subject to and in accordance with local laws). If any of your details are incorrect or if you no longer wish to receive mailings such as this by E-mail please contact the sender by reply E-mail. ________________________________

