Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (23 sloc) 804 Bytes
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.kodejava.example.mybatis.persistence.RecordMapper">
<resultMap id="recordResultMap" type="record">
<result column="release_date" property="releaseDate"/>
<result column="artist_id" property="artistId"/>
<result column="label_id" property="labelId"/>
</resultMap>
<select id="getRecord" parameterType="java.lang.Long" resultMap="recordResultMap">
SELECT
id,
title,
release_date,
artist_id,
label_id,
created,
modified
FROM records
WHERE id = #{id}
</select>
</mapper>
You can’t perform that action at this time.