/*
* WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
* by MyEclipse Hibernate tool integration.
*
* Created Tue Aug 14 18:57:22 CST 2007 by MyEclipse Hibernate Tool.
*/
package com.demo.hibernate.beans;
import java.io.Serializable;
/**
* A class that represents a row in the user table.
* You can customize the behavior of this class by editing the class, {@link User()}.
* WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
* by MyEclipse Hibernate tool integration.
*/
public abstract class AbstractUser implements Serializable {
/** The cached hash code value for this instance. Settting to 0 triggers re-calculation. */
private int hashValue = 0;
/** The composite primary key value. */
private java.lang.Integer id;
/** The value of the simple username property. */
private java.lang.String username;
/** The value of the simple password property. */
private java.lang.String password;
/** The value of the simple email property. */
private java.lang.String email;
/**
* Simple constructor of AbstractUser instances.
*/
public AbstractUser() {
}
/**
* Constructor of AbstractUser instances given a simple primary key.
* @param id
*/
public AbstractUser(java.lang.Integer id) {
this.setId(id);
}
/**
* Return the simple primary key value that identifies this object.
* @return java.lang.Integer
*/
public java.lang.Integer getId() {
return id;
}
/**
* Set the simple primary key value that identifies this object.
* @param id
*/
public void setId(java.lang.Integer id) {
this.hashValue = 0;
this.id = id;
}
/**
* Return the value of the username column.
* @return java.lang.String
*/
public java.lang.String getUsername() {
return this.username;
}
/**
* Set the value of the username column.
* @param username
*/
public void setUsername(java.lang.String username) {
this.username = username;
}
/**
* Return the value of the password column.
* @return java.lang.String
*/
public java.lang.String getPassword() {
return this.password;
}
/**
* Set the value of the password column.
* @param password
*/
public void setPassword(java.lang.String password) {
this.password = password;
}
/**
* Return the value of the email column.
* @return java.lang.String
*/
public java.lang.String getEmail() {
return this.email;
}
/**
* Set the value of the email column.
* @param email
*/
public void setEmail(java.lang.String email) {
this.email = email;
}
/**
* Implementation of the equals comparison on the basis of equality of the primary key values.
* @param rhs
* @return boolean
*/
public boolean equals(Object rhs) {
if (rhs == null)
return false;
if (!(rhs instanceof User))
return false;
User that = (User) rhs;
if (this.getId() == null || that.getId() == null)
return false;
return (this.getId().equals(that.getId()));
}
/**
* Implementation of the hashCode method conforming to the Bloch pattern with
* the exception of array properties (these are very unlikely primary key types).
* @return int
*/
public int hashCode() {
if (this.hashValue == 0) {
int result = 17;
int idValue = this.getId() == null ? 0 : this.getId().hashCode();
result = result * 37 + idValue;
this.hashValue = result;
}
return this.hashValue;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
开发者突击:Java Web 主流框架整合开发 demo(Spring+Hibernate).zip (121个子文件)
logo8.bmp 4KB
logo5.bmp 4KB
logo7.bmp 4KB
logo6.bmp 4KB
RegisterAction.class 3KB
LoginAction.class 2KB
UserDAO.class 2KB
RegisterValidator.class 2KB
AbstractUser.class 2KB
AbstractUser.class 2KB
UserDAO$1.class 1KB
UserDAO$2.class 1KB
LoginValidator.class 1KB
LogoutAction.class 1KB
RegisterForm.class 1KB
RegExpression.class 901B
LoginForm.class 752B
User.class 542B
User.class 542B
IUserDAO.class 437B
Constants.class 376B
.classpath 4KB
Thumbs.db 21KB
spring.jar 2.57MB
hibernate3.jar 1.6MB
itext-1.3.jar 1.09MB
db-ojb-1.0.4.jar 917KB
jasperreports-1.0.2.jar 829KB
poi-2.5.1.jar 783KB
freemarker.jar 767KB
jxl.jar 597KB
commons-collections-3.1.jar 546KB
c3p0-0.9.0.jar 476KB
antlr-2.7.5H3.jar 423KB
jmxri.jar 357KB
velocity-1.4.jar 353KB
log4j-1.2.9.jar 344KB
quartz-1.5.0.jar 324KB
cglib-nodep-2.1_2.jar 317KB
dom4j-1.6.jar 306KB
ibatis-sqlmap-2.jar 284KB
commons-httpclient.jar 273KB
commons-lang.jar 203KB
jmxremote_optional.jar 202KB
sitemesh-2.3.jar 178KB
jmxremote.jar 172KB
hibernate-annotations.jar 128KB
jotm.jar 121KB
junit.jar 118KB
ibatis-sqlmap.jar 117KB
mysql-2.0.4.jar 107KB
commons-dbcp.jar 105KB
xapool.jar 90KB
JAMon.jar 88KB
burlap-2.1.12.jar 83KB
ibatis-common-2.jar 82KB
hessian-2.1.12.jar 81KB
jdo2.jar 74KB
jakarta-oro-2.0.8.jar 64KB
velocity-tools-view-1.1.jar 63KB
cos.jar 55KB
toplink-api.jar 49KB
ehcache-1.1.jar 46KB
commons-pool-1.2.jar 41KB
commons-logging.jar 37KB
easymock.jar 36KB
commons-attributes-api.jar 35KB
commons-attributes-compiler.jar 29KB
commons-fileupload.jar 22KB
velocity-tools-generic-1.1.jar 14KB
easymockclassextension.jar 12KB
jta.jar 9KB
AbstractUser.java 3KB
RegisterAction.java 3KB
UserDAO.java 2KB
LoginAction.java 2KB
RegisterValidator.java 1KB
RegExpression.java 947B
RegisterForm.java 727B
LoginValidator.java 717B
LogoutAction.java 673B
User.java 655B
IUserDAO.java 403B
LoginForm.java 397B
Constants.java 120B
register.jsp 4KB
login.jsp 3KB
welcome.jsp 1KB
frame.jsp 1KB
MANIFEST.MF 39B
.mymetadata 286B
logo2.png 23KB
logo4.png 20KB
logo3.png 2KB
com.genuitec.eclipse.j2eedt.core.prefs 1KB
.project 1KB
ApplicationResources_zh_CN.properties 2KB
ApplicationResources_zh_CN.properties 2KB
ApplicationResources_en.properties 2KB
ApplicationResources.properties 2KB
共 121 条
- 1
- 2
资源评论
- lq4212068182013-05-03可以用,很好。thanks
- Crystal_hong232013-11-11可以用,很好。thanks
CrazySnailers
- 粉丝: 29
- 资源: 52
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功