Hi, please post questions like this on the user-java list. This list is for discussing the development of iBATIS itself.
Please also have a look at the iBATIS documentation. It is pretty good and will answer your questions in no time. http://svn.apache.org/repos/asf/ibatis/trunk/java/ibatis-2/ibatis-2-docs/en/ Best Regards Kai --- Original Nachricht --- Absender: Mridula Datum: 04.04.2009 02:47 > Hi All, > > I am new to iBatis. Can someone please tell me what the bolded ones do in > the below example? > > 1). > <sqlMap> > > <resultMap id="map1" class="com.xyz.Messages"> > <result property="fileName" column="FILE_NAME"/> > <result property="title" column="TITLE"/> > </resultMap> > > <select id="getMessages" parameterClass="java.lang.String" > resultMap="map1"> > some select query > </select> > > <sqlMap> > > What is map1? Does the query result get stored in a map something? How do I > view it or retrieve it? When I did search file for map1 (Took it as an > example) on Eclipse in my entire source code, I am unable to find it. > > 2). getSqlMapClientTemplate().queryForList(getMessages, key); > > I know that the getMessages is the query name and using which a particular > query is identified. But how is the key used? Can someone give a simple > example? > > Thanks