package com.qidi.test.entity;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
/**
* User entity. @author MyEclipse Persistence Tools
*/
@Entity
@Table(name = "user", catalog = "test")
public class User implements java.io.Serializable {
// Fields
/**
*
*/
private static final long serialVersionUID = 1L;
private Long id;
private Integer age;
private Date birthday;
private String address;
private String name;
// Constructors
/** default constructor */
public User() {
}
/** full constructor */
public User(Integer age, Date birthday, String address, String name) {
this.age = age;
this.birthday = birthday;
this.address = address;
this.name = name;
}
// Property accessors
@Id
@GeneratedValue(strategy = IDENTITY)
@Column(name = "id", unique = true, nullable = false)
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
@Column(name = "age")
public Integer getAge() {
return this.age;
}
public void setAge(Integer age) {
this.age = age;
}
@Temporal(TemporalType.DATE)
@Column(name = "birthday", length = 0)
public Date getBirthday() {
return this.birthday;
}
public void setBirthday(Date birthday) {
this.birthday = birthday;
}
@Column(name = "address", length = 50)
public String getAddress() {
return this.address;
}
public void setAddress(String address) {
this.address = address;
}
@Column(name = "name", length = 50)
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
SSH2-Annotation.rar_annotation ssh2_ssh2_ssh2 annotation
共70个文件
jar:26个
java:10个
class:10个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 51 浏览量
2022-09-23
12:23:24
上传
评论
收藏 13.02MB RAR 举报
温馨提示
该程序实现了零配置通过注解代替了hibernate中繁琐的hb.XML配置 使用spring 控制翻转 ,托管hibernate和struts2
资源推荐
资源详情
资源评论
收起资源包目录
SSH2-Annotation.rar (70个子文件)
SSH
.springBeans 423B
.myhibernatedata 609B
.settings
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.common.project.facet.core.xml 252B
org.eclipse.core.resources.prefs 88B
org.eclipse.wst.common.component 447B
org.eclipse.wst.jsdt.ui.superType.container 49B
.jsdtscope 500B
org.eclipse.jdt.core.prefs 395B
src
log4j.properties 638B
com
qidi
test
dao
LoginDAO.java 467B
UserDAO.java 723B
action
LoginAction.java 807B
UserAction.java 859B
service
UserServiceImpl.java 694B
LoginServiceImpl.java 496B
LoginService.java 156B
UserService.java 157B
entity
User.java 2KB
Register.java 1KB
struts.xml 586B
applicationContext.xml 4KB
.project 2KB
WebRoot
META-INF
MANIFEST.MF 36B
WEB-INF
web.xml 2KB
classes
log4j.properties 638B
com
qidi
test
dao
LoginDAO.class 1KB
UserDAO.class 1KB
action
LoginAction.class 1KB
UserAction.class 1KB
service
UserService.class 225B
LoginServiceImpl.class 939B
UserServiceImpl.class 1KB
LoginService.class 182B
entity
User.class 2KB
Register.class 2KB
struts.xml 586B
applicationContext.xml 4KB
lib
commons-collections-3.1.jar 546KB
hibernate-annotations.jar 273KB
slf4j-api-1.5.6.jar 22KB
dom4j-1.6.1.jar 307KB
commons-pool-1.5.2.jar 94KB
spring.jar 2.81MB
ejb3-persistence.jar 49KB
struts2-spring-plugin-2.1.6.jar 9KB
jta.jar 13KB
xwork-2.1.2.jar 2.18MB
ognl-2.6.11.jar 164KB
commons-logging.jar 59KB
hibernate-commons-annotations.jar 65KB
aspectjweaver.jar 1.47MB
commons-dbcp-1.2.2.jar 119KB
aspectjrt.jar 112KB
mysql-connector-java-5.1.5-bin.jar 661KB
commons-fileupload-1.2.1.jar 56KB
javassist-3.4.GA.jar 460KB
struts2-core-2.1.6.jar 719KB
log4j-1.2.15.jar 383KB
slf4j-nop-1.5.6.jar 5KB
commons-io-1.3.2.jar 86KB
freemarker-2.3.13.jar 850KB
antlr-2.7.6.jar 433KB
hibernate3.jar 2.64MB
login.jsp 1KB
index.jsp 1KB
error.jsp 372B
success.jsp 831B
.mymetadata 282B
.classpath 3KB
.myeclipse
共 70 条
- 1
资源评论
钱亚锋
- 粉丝: 86
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功