// Path: apply/src/main/java/org/eddy/model/User.java
// @Getter
// @Setter
// @AllArgsConstructor
// @NoArgsConstructor
// public class User {
// 
//     private Integer id;
//     private String name;
// }


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.eddy.model.User;
import org.eddy.sql.config.KeyParam;
import java.util.List;
package org.eddy.dao.mapper.test;



/**
 * Created by eddy on 2016/12/10.
 */
@Mapper
public interface UserMapper {

    @KeyParam("#root")
    List<User> selectById(Integer id);

    @KeyParam("#root")
    int insert(String name);

    @KeyParam("id")
    int update(User user);

    @KeyParam("#root")
    int delete(Integer id);

    @KeyParam({"begin", "end"})
// Path: apply/src/main/java/org/eddy/model/User.java
// @Getter
// @Setter
// @AllArgsConstructor
// @NoArgsConstructor
// public class User {
// 
//     private Integer id;
//     private String name;
// }


// Path: apply/src/main/java/org/eddy/dao/mapper/test/UserMapper.java
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.eddy.model.User;
import org.eddy.sql.config.KeyParam;
import java.util.List;

package org.eddy.dao.mapper.test;



/**
 * Created by eddy on 2016/12/10.
 */
@Mapper
public interface UserMapper {

    @KeyParam("#root")
    List<User> selectById(Integer id);

    @KeyParam("#root")
    int insert(String name);

    @KeyParam("id")
    int update(User user);

    @KeyParam("#root")
    int delete(Integer id);

    @KeyParam({"begin", "end"})
    List<User> selectUsers(@Param("begin") Integer begin, @Param("end") Integer end);