import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Result;
+import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import com.example.dto.TodoListDto;
@Mapper
public interface TodoListMapper {
+ @Results({
+ @Result(property = "headerId", column = "header_id"),
+ @Result(property = "id", column = "id"),
+ @Result(property = "name", column = "name"),
+ @Result(property = "done", column = "done"),
+ @Result(property = "created", column = "created"),
+ @Result(property = "updated", column = "updated")
+ })
@Select({ "<script>",
" select",
" header_id",
@Select({ "<script>",
" select",
- " , max(id)",
+ " max(id)",
" from",
" todo_list ",
" where",