資源簡介
MyBatis插件擴(kuò)展_PaginationInterceptor分頁插件的使用示例代碼

代碼片段和文件信息
package?com.badao.beans;
import?java.io.Serializable;
import?com.baomidou.mybatisplus.activerecord.Model;
import?com.baomidou.mybatisplus.annotations.TableField;
import?com.baomidou.mybatisplus.annotations.TableId;
import?com.baomidou.mybatisplus.annotations.TableName;
import?com.baomidou.mybatisplus.enums.IdType;
import?com.mchange.util.FailSuppressedMessageLogger;
@TableName(value=“employee“)
public?class?Employee??extends?Model{
@TableId(value=“id“type=IdType.AUTO)
private?Integer?id;
//@TableField(value=“l(fā)ast_name“)
private?String?name;
private?String?email;
private?Integer?gender;
private?Integer?age;
@TableField(exist=false)
private?String?remark;
public?String?getRemark()?{
return?remark;
}
public?void?setRemark(String?remark)?{
this.remark?=?remark;
}
public?Integer?getId()?{
return?id;
}
public?void?setId(Integer?id)?{
this.id?=?id;
}
public?String?getName()?{
return?name;
}
public?void?setName(String?name)?{
this.name?=?name;
}
public?String?getEmail()?{
return?email;
}
public?void?setEmail(String?email)?{
this.email?=?email;
}
public?Integer?getGender()?{
return?gender;
}
public?void?setGender(Integer?gender)?{
this.gender?=?gender;
}
public?Integer?getAge()?{
return?age;
}
public?void?setAge(Integer?age)?{
this.age?=?age;
}
/***
?*?必須指定當(dāng)前實(shí)體類的主鍵屬性
?*/
@Override
protected?Serializable?pkVal()?{
//?TODO?Auto-generated?method?stub
return?id;
}
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-04-17?20:44??hellomp\
?????文件????????1515??2019-04-17?20:44??hellomp\.classpath
?????文件?????????559??2019-04-17?20:44??hellomp\.project
?????目錄???????????0??2019-04-17?20:44??hellomp\.settings\
?????文件?????????291??2019-04-17?20:44??hellomp\.settings\org.eclipse.jdt.core.prefs
?????文件??????????90??2019-04-17?20:44??hellomp\.settings\org.eclipse.m2e.core.prefs
?????文件????????1589??2019-04-17?23:23??hellomp\pom.xm
?????目錄???????????0??2019-04-17?20:44??hellomp\src\
?????目錄???????????0??2019-04-17?20:44??hellomp\src\main\
?????目錄???????????0??2019-04-17?20:46??hellomp\src\main\java\
?????目錄???????????0??2019-04-17?20:46??hellomp\src\main\java\com\
?????目錄???????????0??2019-04-18?20:35??hellomp\src\main\java\com\badao\
?????目錄???????????0??2019-04-17?20:46??hellomp\src\main\java\com\badao\beans\
?????文件????????1558??2019-04-25?22:34??hellomp\src\main\java\com\badao\beans\Employee.java
?????目錄???????????0??2019-04-18?20:35??hellomp\src\main\java\com\badao\mapper\
?????文件?????????355??2019-04-18?20:53??hellomp\src\main\java\com\badao\mapper\EmployeeMapper.java
?????目錄???????????0??2019-04-17?20:57??hellomp\src\main\resources\
?????文件????????3240??2019-04-26?23:14??hellomp\src\main\resources\applicationContext.xm
?????文件?????????118??2019-04-18?20:59??hellomp\src\main\resources\db.properties
?????文件?????????698??2019-04-17?20:57??hellomp\src\main\resources\log4j.xm
?????文件?????????197??2019-04-17?20:57??hellomp\src\main\resources\mybatis-config.xm
?????目錄???????????0??2019-04-17?20:44??hellomp\src\test\
?????目錄???????????0??2019-04-17?21:02??hellomp\src\test\java\
?????目錄???????????0??2019-04-17?21:02??hellomp\src\test\java\com\
?????目錄???????????0??2019-04-17?21:02??hellomp\src\test\java\com\badao\
?????目錄???????????0??2019-04-17?21:02??hellomp\src\test\java\com\badao\test\
?????文件???????12510??2019-04-26?23:24??hellomp\src\test\java\com\badao\test\TestMp.java
?????目錄???????????0??2019-04-27?09:52??hellomp\src\test\resources\
?????目錄???????????0??2019-04-17?20:44??hellomp\target\
?????目錄???????????0??2019-04-27?09:43??hellomp\target\classes\
?????目錄???????????0??2019-04-27?09:43??hellomp\target\classes\me
............此處省略21個(gè)文件信息
- 上一篇:SSM高級(jí)框架所需dtd
- 下一篇:衛(wèi)星位置解算.rar
評(píng)論
共有 條評(píng)論