package com.springmvc.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.SequenceGenerator;
import javax.persistence.Table;
@Entity
@Table(name = "userinfo")
public class UserInfo {
private int userId;
private String uname;
private String usex;
private Date ubirthday;
private String uemail;
private Date uregistDate;
@Id
@Column(name = "userId")
@SequenceGenerator(name = "seq_user_info", sequenceName = "seq_user_info")
@GeneratedValue(strategy = GenerationType.SEQUENCE,generator = "seq_user_info")
public int getUserId() {
return userId;
}
public void setUserId(int userId) {
this.userId = userId;
}
@Column(name = "uname", length = 20)
public String getUname() {
return uname;
}
public void setUname(String uname) {
this.uname = uname;
}
@Column(name = "usex", length = 2)
public String getUsex() {
return usex;
}
public void setUsex(String usex) {
this.usex = usex;
}
@Column(name = "ubirthday")
public Date getUbirthday() {
return ubirthday;
}
public void setUbirthday(Date ubirthday) {
this.ubirthday = ubirthday;
}
@Column(name = "uemail")
public String getUemail() {
return uemail;
}
public void setUemail(String uemail) {
this.uemail = uemail;
}
@Column(name = "UREGIST_DATE")
public Date getUregistDate() {
return uregistDate;
}
public void setUregistDate(Date uregistDate) {
this.uregistDate = uregistDate;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
springmvc整合jpa
共64个文件
jar:33个
xml:7个
class:6个
4星 · 超过85%的资源 需积分: 3 64 下载量 2 浏览量
2013-09-08
22:56:44
上传
评论
收藏 11.94MB RAR 举报
温馨提示
很好的示例,项目中springmvc和jpa所需的jar包、执行sql脚本,项目可直接运行。
资源推荐
资源详情
资源评论
收起资源包目录
JpaSpringMvc.rar (64个子文件)
JpaSpringMvc
userInfo.sql 4KB
.settings
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.common.project.facet.core.xml 252B
org.eclipse.wst.common.component 474B
org.eclipse.wst.jsdt.ui.superType.container 49B
.jsdtscope 493B
org.eclipse.jdt.core.prefs 395B
src
persistence.xml 1KB
com
springmvc
dao
BaseDAO.java 259B
impl
BaseDAOImpl.java 1KB
controller
UserInfoAction.java 1KB
service
impl
BaseServiceImpl.java 1KB
BaseService.java 276B
entity
UserInfo.java 2KB
applicationContext.xml 1KB
.project 2KB
WebRoot
userInfo.jsp 1KB
META-INF
MANIFEST.MF 36B
WEB-INF
web.xml 952B
spring-servlet.xml 2KB
classes
persistence.xml 1KB
com
springmvc
dao
BaseDAO.class 472B
impl
BaseDAOImpl.class 2KB
controller
UserInfoAction.class 2KB
service
BaseService.class 484B
impl
BaseServiceImpl.class 2KB
entity
UserInfo.class 2KB
applicationContext.xml 1KB
lib
commons-collections-3.1.jar 546KB
log4j.jar 359KB
hibernate-annotations.jar 273KB
commons-logging-1.0.4.jar 37KB
dom4j-1.6.1.jar 307KB
org.springframework.transaction-3.0.5.RELEASE.jar 226KB
ejb3-persistence.jar 49KB
aopalliance-1.0.jar 4KB
spring-jdbc-3.1.2.RELEASE.jar 395KB
cglib-2.2.jar 272KB
ojdbc14.jar 1.47MB
org.springframework.web.servlet-3.1.0.M1.jar 428KB
aspectjweaver-1.7.0.jar 1.71MB
org.springframework.web-3.1.0.M1.jar 409KB
slf4j-log4j12.jar 8KB
javassist-3.9.0.GA.jar 583KB
hibernate-commons-annotations.jar 65KB
org.springframework.expression-3.1.0.M1.jar 171KB
org.springframework.context-3.1.0.M1.jar 779KB
org.springframework.beans-3.1.0.M1.jar 568KB
slf4j-api-1.5.8.jar 23KB
aspectjrt-1.7.0.jar 113KB
org.springframework.asm-3.1.0.M1.jar 52KB
org.springframework.core-3.1.0.M1.jar 403KB
jta-1.1.jar 13KB
org.springframework.orm-3.0.5.RELEASE.jar 326KB
spring-tx-3.1.2.RELEASE.jar 239KB
spring-aop-3.1.2.RELEASE.jar 325KB
org.springframework.context.support-3.1.0.M1.jar 96KB
hibernate-entitymanager.jar 116KB
spring-orm-3.1.2.RELEASE.jar 371KB
antlr-2.7.6.jar 433KB
hibernate3.jar 2.31MB
index.jsp 834B
.mymetadata 309B
.classpath 3KB
.myeclipse
共 64 条
- 1
资源评论
- yangaaaaaaaaa2015-12-21谢谢楼主分享
- wx_10282014-06-13确实是不错的实例,可惜我没装数据库,还不能运行。
- meiniandy2017-09-28数据库是Oracle的,需要修改才能运行起来,而且不是maven项目。
geqiandetong
- 粉丝: 0
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功