// Path: src/test/java/com/github/mybatis/mapper/BlogMapper.java
// public interface BlogMapper extends ICrudPaginationMapper<Blog> {
//   @Delete("delete from blog")
//   int myDelete();
// 
//   @Select("select count(0) from blog")
//   int myCount();
// 
//   @Update("create table IF NOT EXISTS blog (\n" +
//     "  id int PRIMARY KEY AUTO_INCREMENT NOT NULL,\n" +
//     "  author VARCHAR(60) NOT NULL,\n" +
//     "  content TEXT NOT NULL,\n" +
//     "  access_date TIMESTAMP\n" +
//     ")")
//   int createTable();
// }


import com.github.mybatis.mapper.BlogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
package com.github.mybatis.service;


/**
 * 测试autowire
 * Created by lirui on 15/1/11.
 */
@Service
public class BlogService {
  @Autowired
// Path: src/test/java/com/github/mybatis/mapper/BlogMapper.java
// public interface BlogMapper extends ICrudPaginationMapper<Blog> {
//   @Delete("delete from blog")
//   int myDelete();
// 
//   @Select("select count(0) from blog")
//   int myCount();
// 
//   @Update("create table IF NOT EXISTS blog (\n" +
//     "  id int PRIMARY KEY AUTO_INCREMENT NOT NULL,\n" +
//     "  author VARCHAR(60) NOT NULL,\n" +
//     "  content TEXT NOT NULL,\n" +
//     "  access_date TIMESTAMP\n" +
//     ")")
//   int createTable();
// }


// Path: src/test/java/com/github/mybatis/service/BlogService.java
import com.github.mybatis.mapper.BlogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

package com.github.mybatis.service;


/**
 * 测试autowire
 * Created by lirui on 15/1/11.
 */
@Service
public class BlogService {
  @Autowired
  private BlogMapper mapper;