</insert>
<insert id="insertData" parameterType="MeasureModel" useGeneratedKeys="false">
- <selectKey order="BEFORE" resultType="Long" keyProperty="id">
- select measure_data_seq.NEXTVAL from DUAL
- </selectKey>
INSERT INTO measure_data (id, measure_id, snapshot_id, data)
- VALUES (#{id}, #{measureData.measure.id}, #{snapshotId}, #{measureData.data})
+ VALUES (measure_data_seq.NEXTVAL, #{id}, #{snapshotId}, #{measureData.data})
</insert>
<update id="update" parameterType="MeasureModel">
<insert id="insertData" parameterType="MeasureModel" useGeneratedKeys="false">
INSERT INTO measure_data (measure_id, snapshot_id, data)
- VALUES (#{measureData.measure.id}, #{snapshotId}, #{measureData.data})
+ VALUES (#{id}, #{snapshotId}, #{measureData.data})
</insert>
<update id="update" parameterType="MeasureModel">