- 现代化养殖场管理系统mysql数据库创建语句
- 现代化养殖场管理系统oracle数据库创建语句
- 现代化养殖场管理系统sqlserver数据库创建语句
- 现代化养殖场管理系统spring+springMVC+hibernate框架对象(javaBean,pojo)设计
- 现代化养殖场管理系统spring+springMVC+mybatis框架对象(javaBean,pojo)设计
登录注册界面.jpg?x-oss-process=style/00001)
现代化养殖场管理系统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_sl(
id int primary key auto_increment comment '主键',
title varchar(100) comment '饲料名称',
pic varchar(100) comment '图片',
sl int comment '当前数量'
) comment '饲料表';
饲料购入表创建语句如下:
create table t_slgr(
id int primary key auto_increment comment '主键',
slId int comment '饲料',
nums int comment '数量',
showDate datetime comment '日期',
jbr varchar(100) comment '经办人',
fee int comment '价格',
bz text comment '备注'
) comment '饲料购入';
饲料使用表创建语句如下:
create table t_slsy(
id int primary key auto_increment comment '主键',
slId int comment '饲料',
nums int comment '数量',
showDate datetime comment '日期',
jbr varchar(100) comment '经办人',
bz text comment '备注'
) comment '饲料使用';
分类表创建语句如下:
create table t_types(
id int primary key auto_increment comment '主键',
typesName varchar(100) 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_sl(
id integer,
title varchar(100),
pic varchar(100),
sl int
);
--饲料表字段加注释
comment on column t_sl.id is '主键';
comment on column t_sl.title is '饲料名称';
comment on column t_sl.pic is '图片';
comment on column t_sl.sl is '当前数量';
--饲料表表加注释
comment on table t_sl is '饲料表';
饲料购入表创建语句如下:
create table t_slgr(
id integer,
slId int,
nums int,
showDate datetime,
jbr varchar(100),
fee int,
bz text
);
--饲料购入字段加注释
comment on column t_slgr.id is '主键';
comment on column t_slgr.slId is '饲料';
comment on column t_slgr.nums is '数量';
comment on column t_slgr.showDate is '日期';
comment on column t_slgr.jbr is '经办人';
comment on column t_slgr.fee is '价格';
comment on column t_slgr.bz is '备注';
--饲料购入表加注释
comment on table t_slgr is '饲料购入';
饲料使用表创建语句如下:
create table t_slsy(
id integer,
slId int,
nums int,
showDate datetime,
jbr varchar(100),
bz text
);
--饲料使用字段加注释
comment on column t_slsy.id is '主键';
comment on column t_slsy.slId is '饲料';
comment on column t_slsy.nums is '数量';
comment on column t_slsy.showDate is '日期';
comment on column t_slsy.jbr is '经办人';
comment on column t_slsy.bz is '备注';
--饲料使用表加注释
comment on table t_slsy is '饲料使用';
分类表创建语句如下:
create table t_types(
id integer,
typesName varchar(100)
);
--分类字段加注释
comment on column t_types.id is '主键';
comment on column t_types.typesName is '分类';
--分类表加注释
comment on table t_types is '分类';
oracle特有,对应序列如下:
create sequence s_t_sl;
create sequence s_t_slgr;
create sequence s_t_slsy;
create sequence s_t_types;
现代化养殖场管理系统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_sl(
id int identity(1,1) primary key not null,--主键
title varchar(100),--饲料名称
pic varchar(100),--图片
sl int--当前数量
);
饲料购入表创建语句如下:
--饲料购入表注释
create table t_slgr(
id int identity(1,1) primary key not null,--主键
slId int,--饲料
nums int,--数量
showDate datetime,--日期
jbr varchar(100),--经办人
fee int,--价格
bz text--备注
);
饲料使用表创建语句如下:
--饲料使用表注释
create table t_slsy(
id int identity(1,1) primary key not null,--主键
slId int,--饲料
nums int,--数量
showDate datetime,--日期
jbr varchar(100),--经办人
bz text--备注
);
分类表创建语句如下:
--分类表注释
create table t_types(
id int identity(1,1) primary key not null,--主键
typesName varchar(100)--分类
);
登录后主页.jpg?x-oss-process=style/00001)
现代化养殖场管理系统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_sl")
public class Sl {
//主键
@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 String pic;
//当前数量
private Integer sl;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public Integer getSl() {return sl;}
public void setSl(Integer sl) {this.sl = sl;}
}
饲料购入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_slgr")
public class Slgr {
//主键
@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 slId;
//数量
private Integer nums;
//日期
private Date showDate;
//经办人
private String jbr;
//价格
private Integer fee;
//备注
private String bz;
public Long getSlId() {return slId;}
public void setSlId(Long slId) {this.slId = slId;}
public Integer getNums() {return nums;}
public void setNums(Integer nums) {this.nums = nums;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getJbr() {return jbr;}
public void setJbr(String jbr) {this.jbr = jbr;}
public Integer getFee() {return fee;}
public void setFee(Integer fee) {this.fee = fee;}
public String getBz() {return bz;}
public void setBz(String bz) {this.bz = bz;}
}
饲料使用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_slsy")
public class Slsy {
//主键
@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 slId;
//数量
private Integer nums;
//日期
private Date showDate;
//经办人
private String jbr;
//备注
private String bz;
public Long getSlId() {return slId;}
public void setSlId(Long slId) {this.slId = slId;}
public Integer getNums() {return nums;}
public void setNums(Integer nums) {this.nums = nums;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getJbr() {return jbr;}
public void setJbr(String jbr) {this.jbr = jbr;}
public String getBz() {return bz;}
public void setBz(String bz) {this.bz = bz;}
}
分类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_types")
public class Types {
//主键
@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 typesName;
public String getTypesName() {return typesName;}
public void setTypesName(String typesName) {this.typesName = typesName;}
}
现代化养殖场管理系统spring+springMVC+mybatis框架对象(javaBean,pojo)设计:
饲料表javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//饲料表
public class Sl extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//饲料名称
private String title;
//图片
private String pic;
//当前数量
private Integer sl;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public Integer getSl() {return sl;}
public void setSl(Integer sl) {this.sl = sl;}
}
饲料购入javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//饲料购入
public class Slgr extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//饲料
private Long slId;
//数量
private Integer nums;
//日期
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date showDate;
//经办人
private String jbr;
//价格
private Integer fee;
//备注
private String bz;
public Long getSlId() {return slId;}
public void setSlId(Long slId) {this.slId = slId;}
public Integer getNums() {return nums;}
public void setNums(Integer nums) {this.nums = nums;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getJbr() {return jbr;}
public void setJbr(String jbr) {this.jbr = jbr;}
public Integer getFee() {return fee;}
public void setFee(Integer fee) {this.fee = fee;}
public String getBz() {return bz;}
public void setBz(String bz) {this.bz = bz;}
}
饲料使用javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//饲料使用
public class Slsy extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//饲料
private Long slId;
//数量
private Integer nums;
//日期
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date showDate;
//经办人
private String jbr;
//备注
private String bz;
public Long getSlId() {return slId;}
public void setSlId(Long slId) {this.slId = slId;}
public Integer getNums() {return nums;}
public void setNums(Integer nums) {this.nums = nums;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
public String getJbr() {return jbr;}
public void setJbr(String jbr) {this.jbr = jbr;}
public String getBz() {return bz;}
public void setBz(String bz) {this.bz = bz;}
}
分类javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//分类
public class Types extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//分类
private String typesName;
public String getTypesName() {return typesName;}
public void setTypesName(String typesName) {this.typesName = typesName;}
}