表的设计和pojo类的创建
1.提前准备数据库表,设置id为主键自增
2.student类
package com.powernode.mybatis.pojo;
import java.util.Date;
public class Student {
private Long id;
private String name;
private Integer age;
private Double height;
private Character sex;
private Date birth;
// constructor
// setter and getter
// toString
}
1 单个简单类型参数
简单类型包括:
byte short int long float double char
Byte Short Integer Long Float Double Character
String
java.util.Date
java.sql.Date
rMapper......
暂无评论...