<select id="getMessages" parameterClass="java.lang.String" resultMap="map1">
some select query
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 map1 here as an example) on Eclipse in my entire source code, I am unable to find it.
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?
Be Humble... Be Nice.
Joined: Nov 10, 2007
Ok, For the first question, From what I read, resultMap is the one used to map our class's instance variables to the database columns. I used to think that the resultset values from executing the query will be stored in a map something. which is wrong.
For the second question,
key is used in the where clause of the query statement.