Skip to content

Instantly share code, notes, and snippets.

@remeniuk
Created December 26, 2011 15:27
Show Gist options
  • Save remeniuk/1521404 to your computer and use it in GitHub Desktop.
Save remeniuk/1521404 to your computer and use it in GitHub Desktop.
<mapper namespace="com.vasilrem.ideabox.model.TopicMapper">
<resultMap id="topicResult" type="com.vasilrem.ideabox.model.Topic">
<constructor>
<idArg column="id" javaType="String"/>
<arg column="name" javaType="String"/>
</constructor>
</resultMap>
<select id="getTopic" parameterType="String" resultMap="topicResult">
SELECT ID, NAME FROM IDEA_TOPIC WHERE ID = #{value}
</select>
</mapper>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment