text: package geektime.spring.data.mybatisdemo.mapper;
  
  import geektime.spring.data.mybatisdemo.model.Coffee;
  import org.apache.ibatis.annotations.Mapper;
  import org.apache.ibatis.annotations.Param;
  import org.apache.ibatis.annotations.Select;
  import org.apache.ibatis.session.RowBounds;
  
  import java.util.List;
  
  @Mapper
  public interface CoffeeMapper {
      @Select("select * from t_coffee order by id")
      List<Coffee> findAllWithRowBounds(RowBounds rowBounds);
  
      @Select("select * from t_coffee order by id")
      List<Coffee> findAllWithParam(@Param("pageNum") int pageNum,
                                    @Param("pageSize") int pageSize);
  }
  