From 0cf9a881f91b956cca158bffe7039ee530c9e5de Mon Sep 17 00:00:00 2001 From: tkskjri05 Date: Mon, 3 May 2021 13:55:20 +0900 Subject: [PATCH] =?utf8?q?Result=E3=82=92=E5=AE=9A=E7=BE=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/com/example/mapper/TodoListMapper.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/example/mapper/TodoListMapper.java b/src/main/java/com/example/mapper/TodoListMapper.java index e35fec4..7246d39 100644 --- a/src/main/java/com/example/mapper/TodoListMapper.java +++ b/src/main/java/com/example/mapper/TodoListMapper.java @@ -4,12 +4,22 @@ import java.util.List; 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({ "