- 大学生综合素质测评系统mysql数据库创建语句
- 大学生综合素质测评系统oracle数据库创建语句
- 大学生综合素质测评系统sqlserver数据库创建语句
- 大学生综合素质测评系统spring+springMVC+hibernate框架对象(javaBean,pojo)设计
- 大学生综合素质测评系统spring+springMVC+mybatis框架对象(javaBean,pojo)设计
大学生综合素质测评系统mysql数据库版本源码:
超级管理员表创建语句如下:
create table t_admin(
id int primary key auto_increment comment '主键',
username varchar(100) comment '超级管理员账号',
password varchar(100) comment '超级管理员密码'
) comment '超级管理员';
insert into t_admin(username,password) values('admin','123456');
课程成绩表创建语句如下:
create table t_kccj(
id int primary key auto_increment comment '主键',
kcId int comment '课程',
fenshu int comment '分数',
py text comment '评语',
studentId int comment '学生',
teacherId int comment '老师'
) comment '课程成绩';
素质成绩表创建语句如下:
create table t_szcj(
id int primary key auto_increment comment '主键',
title varchar(100) comment '',
fenshu int comment '分数',
py text comment '评语',
studentId int comment '学生',
teacherId int comment '老师'
) comment '素质成绩';
综合成绩表创建语句如下:
create table t_zonghe(
id int primary key auto_increment comment '主键',
fenshu int comment '分数',
py text comment '评语',
studentId int comment '学生',
teacherId int comment '老师'
) comment '综合成绩';
大学生综合素质测评系统oracle数据库版本源码:
超级管理员表创建语句如下:
create table t_admin(
id integer,
username varchar(100),
password varchar(100)
);
insert into t_admin(id,username,password) values(1,'admin','123456');
--超级管理员字段加注释
comment on column t_admin.id is '主键';
comment on column t_admin.username is '超级管理员账号';
comment on column t_admin.password is '超级管理员密码';
--超级管理员表加注释
comment on table t_admin is '超级管理员';
课程成绩表创建语句如下:
create table t_kccj(
id integer,
kcId int,
fenshu int,
py text,
studentId int,
teacherId int
);
--课程成绩字段加注释
comment on column t_kccj.id is '主键';
comment on column t_kccj.kcId is '课程';
comment on column t_kccj.fenshu is '分数';
comment on column t_kccj.py is '评语';
comment on column t_kccj.studentId is '学生';
comment on column t_kccj.teacherId is '老师';
--课程成绩表加注释
comment on table t_kccj is '课程成绩';
素质成绩表创建语句如下:
create table t_szcj(
id integer,
title varchar(100),
fenshu int,
py text,
studentId int,
teacherId int
);
--素质成绩字段加注释
comment on column t_szcj.id is '主键';
comment on column t_szcj.title is '';
comment on column t_szcj.fenshu is '分数';
comment on column t_szcj.py is '评语';
comment on column t_szcj.studentId is '学生';
comment on column t_szcj.teacherId is '老师';
--素质成绩表加注释
comment on table t_szcj is '素质成绩';
综合成绩表创建语句如下:
create table t_zonghe(
id integer,
fenshu int,
py text,
studentId int,
teacherId int
);
--综合成绩字段加注释
comment on column t_zonghe.id is '主键';
comment on column t_zonghe.fenshu is '分数';
comment on column t_zonghe.py is '评语';
comment on column t_zonghe.studentId is '学生';
comment on column t_zonghe.teacherId is '老师';
--综合成绩表加注释
comment on table t_zonghe is '综合成绩';
oracle特有,对应序列如下:
create sequence s_t_kccj;
create sequence s_t_szcj;
create sequence s_t_zonghe;
大学生综合素质测评系统sqlserver数据库版本源码:
超级管理员表创建语句如下:
--超级管理员
create table t_admin(
id int identity(1,1) primary key not null,--主键
username varchar(100),--超级管理员账号
password varchar(100)--超级管理员密码
);
insert into t_admin(username,password) values('admin','123456');
课程成绩表创建语句如下:
--课程成绩表注释
create table t_kccj(
id int identity(1,1) primary key not null,--主键
kcId int,--课程
fenshu int,--分数
py text,--评语
studentId int,--学生
teacherId int--老师
);
素质成绩表创建语句如下:
--素质成绩表注释
create table t_szcj(
id int identity(1,1) primary key not null,--主键
title varchar(100),--
fenshu int,--分数
py text,--评语
studentId int,--学生
teacherId int--老师
);
综合成绩表创建语句如下:
--综合成绩表注释
create table t_zonghe(
id int identity(1,1) primary key not null,--主键
fenshu int,--分数
py text,--评语
studentId int,--学生
teacherId int--老师
);
大学生综合素质测评系统spring+springMVC+hibernate框架对象(javaBean,pojo)设计:
课程成绩javaBean创建语句如下:
package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//课程成绩
@Table(name = "t_kccj")
public class Kccj {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//课程
private Long kcId;
//分数
private Integer fenshu;
//评语
private String py;
//学生
private Long studentId;
//老师
private Long teacherId;
public Long getKcId() {return kcId;}
public void setKcId(Long kcId) {this.kcId = kcId;}
public Integer getFenshu() {return fenshu;}
public void setFenshu(Integer fenshu) {this.fenshu = fenshu;}
public String getPy() {return py;}
public void setPy(String py) {this.py = py;}
public Long getStudentId() {return studentId;}
public void setStudentId(Long studentId) {this.studentId = studentId;}
public Long getTeacherId() {return teacherId;}
public void setTeacherId(Long teacherId) {this.teacherId = teacherId;}
}
素质成绩javaBean创建语句如下:
package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//素质成绩
@Table(name = "t_szcj")
public class Szcj {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//
private String title;
//分数
private Integer fenshu;
//评语
private String py;
//学生
private Long studentId;
//老师
private Long teacherId;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public Integer getFenshu() {return fenshu;}
public void setFenshu(Integer fenshu) {this.fenshu = fenshu;}
public String getPy() {return py;}
public void setPy(String py) {this.py = py;}
public Long getStudentId() {return studentId;}
public void setStudentId(Long studentId) {this.studentId = studentId;}
public Long getTeacherId() {return teacherId;}
public void setTeacherId(Long teacherId) {this.teacherId = teacherId;}
}
综合成绩javaBean创建语句如下:
package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//综合成绩
@Table(name = "t_zonghe")
public class Zonghe {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//分数
private Integer fenshu;
//评语
private String py;
//学生
private Long studentId;
//老师
private Long teacherId;
public Integer getFenshu() {return fenshu;}
public void setFenshu(Integer fenshu) {this.fenshu = fenshu;}
public String getPy() {return py;}
public void setPy(String py) {this.py = py;}
public Long getStudentId() {return studentId;}
public void setStudentId(Long studentId) {this.studentId = studentId;}
public Long getTeacherId() {return teacherId;}
public void setTeacherId(Long teacherId) {this.teacherId = teacherId;}
}
大学生综合素质测评系统spring+springMVC+mybatis框架对象(javaBean,pojo)设计:
课程成绩javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//课程成绩
public class Kccj extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//课程
private Long kcId;
//分数
private Integer fenshu;
//评语
private String py;
//学生
private Long studentId;
//老师
private Long teacherId;
public Long getKcId() {return kcId;}
public void setKcId(Long kcId) {this.kcId = kcId;}
public Integer getFenshu() {return fenshu;}
public void setFenshu(Integer fenshu) {this.fenshu = fenshu;}
public String getPy() {return py;}
public void setPy(String py) {this.py = py;}
public Long getStudentId() {return studentId;}
public void setStudentId(Long studentId) {this.studentId = studentId;}
public Long getTeacherId() {return teacherId;}
public void setTeacherId(Long teacherId) {this.teacherId = teacherId;}
}
素质成绩javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//素质成绩
public class Szcj extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//
private String title;
//分数
private Integer fenshu;
//评语
private String py;
//学生
private Long studentId;
//老师
private Long teacherId;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public Integer getFenshu() {return fenshu;}
public void setFenshu(Integer fenshu) {this.fenshu = fenshu;}
public String getPy() {return py;}
public void setPy(String py) {this.py = py;}
public Long getStudentId() {return studentId;}
public void setStudentId(Long studentId) {this.studentId = studentId;}
public Long getTeacherId() {return teacherId;}
public void setTeacherId(Long teacherId) {this.teacherId = teacherId;}
}
综合成绩javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//综合成绩
public class Zonghe extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//分数
private Integer fenshu;
//评语
private String py;
//学生
private Long studentId;
//老师
private Long teacherId;
public Integer getFenshu() {return fenshu;}
public void setFenshu(Integer fenshu) {this.fenshu = fenshu;}
public String getPy() {return py;}
public void setPy(String py) {this.py = py;}
public Long getStudentId() {return studentId;}
public void setStudentId(Long studentId) {this.studentId = studentId;}
public Long getTeacherId() {return teacherId;}
public void setTeacherId(Long teacherId) {this.teacherId = teacherId;}
}