package com.dreamworks.boditech.mapper; import com.dreamworks.boditech.entity.TestStepLogEntry; import org.apache.ibatis.annotations.Insert; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Options; import org.apache.ibatis.annotations.Update; @Mapper public interface TestStepMapper { @Insert("INSERT INTO bdt_test_steps (" + "testId, stepName,stepOptions, startedAt" + ") VALUES (" + "#{testId}, #{stepName}, #{stepOptions}, #{startedAt}" + ")") @Options(useGeneratedKeys=true, keyProperty="id", keyColumn="id") int insert(TestStepLogEntry entry); @Update("UPDATE bdt_test_steps SET finishedAt = #{finishedAt} WHERE id = #{id}") int update(TestStepLogEntry entry); }