package org.veight.admin.domain;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import org.hibernate.annotations.GenericGenerator;
/**
* 实体类 - 基类
* @author Administrator
* @date 2014-3-31 下午05:06:01
*
*/
@MappedSuperclass
public class ABaseEntity implements Serializable{
private static final long serialVersionUID = 1L;
private String id;// ID
private Date createDate;// 创建日期
private Date modifyDate;// 修改日期
@Id
@Column(length = 32, nullable = true)
@GeneratedValue(generator = "uuid")
@GenericGenerator(name = "uuid", strategy = "uuid")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@Column(updatable = false)
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public Date getModifyDate() {
return modifyDate;
}
public void setModifyDate(Date modifyDate) {
this.modifyDate = modifyDate;
}
@Override
public int hashCode() {
return id == null ? System.identityHashCode(this) : id.hashCode();
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass().getPackage() != obj.getClass().getPackage()) {
return false;
}
final ABaseEntity other = (ABaseEntity) obj;
if (id == null) {
if (other.getId() != null) {
return false;
}
} else if (!id.equals(other.getId())) {
return false;
}
return true;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Jboss7上+maven搭建struts2+spring3+hibernate3完整能运行工程源码,在tomcat7上运行也成功测试了,注意:我工程文件是用myeclipse2013开发的,你需要导入自己ide的时候,会有兼容性问题:最好阁下是自己新建一个maven工程,或者新建web工程,并把maven支持给选上。然后哦复制相关的配置文件。struts2采用零配置,不懂struts2零配置的学习之后再研究代码。
资源推荐
资源详情
资源评论
收起资源包目录
veight.rar (82个子文件)
lib包
lib
commons-lang3-3.1.jar 308KB
asm-commons-3.3.jar 37KB
spring-test-3.2.0.RELEASE.jar 441KB
spring-context-support-3.2.0.RELEASE.jar 124KB
log4j-1.2.16.jar 470KB
struts2-spring-plugin-2.3.15.2.jar 21KB
dom4j-1.6.1.jar 307KB
spring-expression-3.2.0.RELEASE.jar 189KB
spring-beans-3.2.0.RELEASE.jar 591KB
spring-core-3.2.0.RELEASE.jar 843KB
mysql-connector-java-5.1.30.jar 932KB
xwork-core-2.3.15.2.jar 626KB
spring-context-3.2.0.RELEASE.jar 834KB
spring-orm-3.2.0.RELEASE.jar 383KB
commons-logging-1.1.1.jar 59KB
spring-web-3.2.0.RELEASE.jar 610KB
javassist-3.11.0.GA.jar 600KB
antlr-2.7.6.jar 433KB
spring-webmvc-3.2.0.RELEASE.jar 621KB
commons-collections-3.1.jar 546KB
freemarker-2.3.19.jar 909KB
commons-io-2.0.1.jar 156KB
struts2-json-plugin-2.3.15.2.jar 69KB
asm-tree-3.3.jar 21KB
c3p0-0.9.1.2.jar 596KB
hibernate-jpa-2.0-api-1.0.1.Final.jar 100KB
slf4j-api-1.6.1.jar 25KB
spring-aop-3.2.0.RELEASE.jar 327KB
commons-fileupload-1.3.jar 67KB
aopalliance-1.0.jar 4KB
asm-3.3.jar 43KB
struts2-convention-plugin-2.3.15.jar 66KB
slf4j-log4j12-1.7.2.jar 9KB
jta-1.1.jar 15KB
spring-jdbc-3.2.0.RELEASE.jar 392KB
spring-aspects-3.2.0.RELEASE.jar 68KB
struts2-core-2.3.15.2.jar 784KB
ognl-3.0.6.jar 223KB
spring-tx-3.2.0.RELEASE.jar 235KB
aspectjweaver-1.7.1.jar 1.71MB
hibernate-commons-annotations-3.2.0.Final.jar 70KB
hibernate-core-3.6.10.Final.jar 2.98MB
veight
.project 1KB
src
freemarker.properties 248B
i18n_zh_CN.properties 5KB
struts.xml 4KB
applicationContext.xml 3KB
jdbc.properties 342B
log4j.properties 292B
i18n_en_US.properties 4KB
org
veight
action
AdminAction.java 504B
admin
domain
ABaseEntity.java 2KB
Admin.java 181B
target
m2e-jee
web-resources
META-INF
MANIFEST.MF 114B
maven
org.veight
veight
pom.properties 254B
pom.xml 4KB
classes
freemarker.properties 248B
i18n_zh_CN.properties 5KB
struts.xml 4KB
applicationContext.xml 3KB
jdbc.properties 342B
log4j.properties 292B
i18n_en_US.properties 4KB
org
veight
action
AdminAction.class 862B
admin
domain
Admin.class 440B
ABaseEntity.class 2KB
WebRoot
WEB-INF
classes
lib
web.xml 1KB
template
admin
success.ftl 2KB
error.ftl 1KB
index.jsp 865B
META-INF
MANIFEST.MF 39B
template
admin
404.jsp 856B
.settings
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.common.project.facet.core.xml 402B
org.eclipse.m2e.core.prefs 90B
org.eclipse.jdt.core.prefs 430B
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.core.resources.prefs 77B
org.eclipse.wst.common.component 563B
.jsdtscope 522B
pom.xml 4KB
.classpath 901B
共 82 条
- 1
一名清官
- 粉丝: 115
- 资源: 22
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
前往页