package com.zwp.entity;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="t_user")
public class User {
private Long id ;
private String username;
private Date birthday;
private String sex ;
private String address;
private String password;
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
@Column(name="id")
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
@Column(name="username")
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
@Column(name="birthday")
public Date getBirthday() {
return birthday;
}
public void setBirthday(Date birthday) {
this.birthday = birthday;
}
@Column(name="sex")
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
@Column(name="adress")
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
@Column(name="password")
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
@Override
public String toString() {
return "User [id=" + id + ", username=" + username + ", birthday="
+ birthday.toString() + ", sex=" + sex + ", address=" + address + "]";
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
spring-boot.zip (31个子文件)
spring-boot
pom.xml 3KB
target
test-classes
com
zwp
AppTest.class 601B
classes
META-INF
maven
com.zwp
spring-boot
pom.xml 3KB
pom.properties 228B
MANIFEST.MF 316B
application.properties 2KB
com
zwp
base
BaseDao.class 704B
Application.class 1KB
repository
UserRepository.class 1KB
controller
UserController.class 2KB
entity
User.class 2KB
WebContent
META-INF
MANIFEST.MF 39B
WEB-INF
lib
.settings
org.eclipse.m2e.core.prefs 90B
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.common.project.facet.core.xml 219B
org.eclipse.core.resources.prefs 155B
org.eclipse.wst.common.component 669B
org.eclipse.wst.jsdt.ui.superType.container 49B
.jsdtscope 567B
org.eclipse.jdt.core.prefs 430B
src
test
java
com
zwp
AppTest.java 673B
main
webapp
WEB-INF
web.xml 222B
index.jsp 57B
resources
application.properties 2KB
java
com
zwp
base
BaseDao.java 424B
Application.java 808B
repository
UserRepository.java 872B
controller
UserController.java 2KB
entity
User.java 2KB
.project 1KB
.classpath 1KB
共 31 条
- 1
资源评论
- 涛哥1111112020-06-30骗分也不至于这样吧,,就一个空壳还骗5分,,还找一个拖,你是真的会玩
- yu1236650062020-01-19还不错吧。
- I_Believe_Foreve2018-08-23学到了谢谢黄粱一梦-努力努力2018-09-07不用客气;
黄粱一梦-努力努力
- 粉丝: 20
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功