package pojo;
import java.util.ArrayList;
import java.util.List;
public class TUserExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table t_user
*
* @mbggenerated Mon Mar 24 11:27:25 CST 2014
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table t_user
*
* @mbggenerated Mon Mar 24 11:27:25 CST 2014
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table t_user
*
* @mbggenerated Mon Mar 24 11:27:25 CST 2014
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_user
*
* @mbggenerated Mon Mar 24 11:27:25 CST 2014
*/
public TUserExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_user
*
* @mbggenerated Mon Mar 24 11:27:25 CST 2014
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_user
*
* @mbggenerated Mon Mar 24 11:27:25 CST 2014
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_user
*
* @mbggenerated Mon Mar 24 11:27:25 CST 2014
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_user
*
* @mbggenerated Mon Mar 24 11:27:25 CST 2014
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_user
*
* @mbggenerated Mon Mar 24 11:27:25 CST 2014
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_user
*
* @mbggenerated Mon Mar 24 11:27:25 CST 2014
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_user
*
* @mbggenerated Mon Mar 24 11:27:25 CST 2014
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_user
*
* @mbggenerated Mon Mar 24 11:27:25 CST 2014
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_user
*
* @mbggenerated Mon Mar 24 11:27:25 CST 2014
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table t_user
*
* @mbggenerated Mon Mar 24 11:27:25 CST 2014
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table t_user
*
* @mbggenerated Mon Mar 24 11:27:25 CST 2014
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Integer value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Integer> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Integer> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("name is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("name is not null");
return (Criteria) this;
}
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
mybatis 的generator一个增删改查示例,generator先安装,我安装的地址http://mybatis.googlecode.com/svn/sub-projects/generator/trunk/eclipse/UpdateSite/ 安装好后,右击generatorConfig.xml这个可以看到一个类似蝙蝠的玫瑰红标志,点击它运行,就会在相应的地方自动生成pojo、interface、impl、xml等,代码我自己写的,1分算是功劳分吧,我是jdk1.7,win7,GGTS,只是测试了一下,没有写jsp
资源推荐
资源详情
资源评论
收起资源包目录
mybaitis_my.rar (51个子文件)
mybaitis_my
WebContent
META-INF
MANIFEST.MF 39B
WEB-INF
web.xml 712B
lib
mybatis-generator-core-1.3.2.jar 504KB
mybatis-3.2.0-SNAPSHOT.jar 684KB
spring-context-3.1.4.RELEASE.jar 819KB
logback-core-1.0.13.jar 409KB
spring-aop-3.1.4.RELEASE.jar 325KB
aopalliance-1.0.jar 4KB
hamcrest-all-1.3.jar 299KB
spring-test-3.1.4.RELEASE.jar 227KB
spring-beans-3.1.4.RELEASE.jar 583KB
spring-jdbc-3.1.4.RELEASE.jar 396KB
mybatis-spring-1.2.0.jar 48KB
junit-4.11.jar 239KB
spring-tx-3.1.4.RELEASE.jar 240KB
spring-asm-3.1.4.RELEASE.jar 52KB
spring-core-3.1.4.RELEASE.jar 441KB
spring-expression-3.1.4.RELEASE.jar 175KB
mysql-connector-java-5.1.22-bin.jar 813KB
slf4j-api-1.7.5.jar 25KB
jcl-over-slf4j-1.7.5.jar 16KB
logback-classic-1.0.13.jar 258KB
index.jsp 410B
.settings
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.common.project.facet.core.xml 345B
org.eclipse.wst.common.component 487B
org.eclipse.wst.jsdt.ui.superType.container 49B
.jsdtscope 503B
org.eclipse.jdt.core.prefs 364B
src
dao
TUserMapper.java 4KB
test
UserTest.java 1KB
jdbc.properties 410B
pojo
TUserMapper.xml 8KB
TUserExample.java 15KB
TUser.java 3KB
service
applicationContext.xml 2KB
generatorConfig.xml 1KB
.project 1KB
.classpath 850B
.gitignore 728B
build
classes
dao
TUserMapper.class 2KB
test
UserTest.class 3KB
jdbc.properties 410B
pojo
TUserMapper.xml 8KB
TUser.class 1KB
TUserExample.class 2KB
TUserExample$Criteria.class 4KB
TUserExample$GeneratedCriteria.class 8KB
TUserExample$Criterion.class 2KB
service
applicationContext.xml 2KB
generatorConfig.xml 1KB
共 51 条
- 1
资源评论
- wangxuebo12016-10-27还行,参考一下。
- sinat_391092422017-11-15一般 吧 只能参考
- 并不陌生2014-10-01适合初学者参考
- JaneCrysteals2015-03-02有一定参考价值
跑跑江湖打打酱油
- 粉丝: 1
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- tomcat6.0配置oracle数据库连接池中文WORD版最新版本
- hibernate连接oracle数据库中文WORD版最新版本
- MyEclipse连接MySQL的方法中文WORD版最新版本
- MyEclipse中配置Hibernate连接Oracle中文WORD版最新版本
- MyEclipseTomcatMySQL的环境搭建中文WORD版3.37MB最新版本
- hggm - 国密算法 SM2 SM3 SM4 SM9 ZUC Python实现完整代码-算法实现资源
- SQLITE操作入门中文WORD版最新版本
- Sqlite操作实例中文WORD版最新版本
- SQLITE特性分析中文WORD版最新版本
- ORACLE创建表空间中文WORD版最新版本
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功