package com.bean.sys.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the sys_user table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="sys_user"
*/
public abstract class BaseSysUser implements Serializable {
public static String REF = "SysUser";
public static String PROP_PASSWORD = "Password";
public static String PROP_LOCAL = "Local";
public static String PROP_SEX = "Sex";
public static String PROP_LOGTIME = "Logtime";
public static String PROP_VISIBLE = "Visible";
public static String PROP_IP = "Ip";
public static String PROP_NAME = "Name";
public static String PROP_DEPARTMENT = "Department";
public static String PROP_ID = "Id";
public static String PROP_GROUP = "Group";
public static String PROP_LEVEL = "Level";
// constructors
public BaseSysUser () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseSysUser (java.lang.Integer id) {
this.setId(id);
initialize();
}
/**
* Constructor for required fields
*/
public BaseSysUser (
java.lang.Integer id,
com.bean.sys.SysDimLevel level,
com.bean.sys.SysGroup group,
com.bean.sys.SysDimLocal local,
com.bean.sys.SysDimDepartment department,
java.lang.String name,
java.lang.String password,
java.lang.String sex,
java.lang.String ip,
java.util.Date logtime,
java.lang.String visible) {
this.setId(id);
this.setLevel(level);
this.setGroup(group);
this.setLocal(local);
this.setDepartment(department);
this.setName(name);
this.setPassword(password);
this.setSex(sex);
this.setIp(ip);
this.setLogtime(logtime);
this.setVisible(visible);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer id;
// fields
private java.lang.String name;
private java.lang.String password;
private java.lang.String sex;
private java.lang.String ip;
private java.util.Date logtime;
private java.lang.String visible;
// many to one
private com.bean.sys.SysDimLevel level;
private com.bean.sys.SysGroup group;
private com.bean.sys.SysDimLocal local;
private com.bean.sys.SysDimDepartment department;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="increment"
* column="id"
*/
public java.lang.Integer getId () {
return id;
}
/**
* Set the unique identifier of this class
* @param id the new ID
*/
public void setId (java.lang.Integer id) {
this.id = id;
this.hashCode = Integer.MIN_VALUE;
}
/**
* Return the value associated with the column: name
*/
public java.lang.String getName () {
return name;
}
/**
* Set the value related to the column: name
* @param name the name value
*/
public void setName (java.lang.String name) {
this.name = name;
}
/**
* Return the value associated with the column: password
*/
public java.lang.String getPassword () {
return password;
}
/**
* Set the value related to the column: password
* @param password the password value
*/
public void setPassword (java.lang.String password) {
this.password = password;
}
/**
* Return the value associated with the column: sex
*/
public java.lang.String getSex () {
return sex;
}
/**
* Set the value related to the column: sex
* @param sex the sex value
*/
public void setSex (java.lang.String sex) {
this.sex = sex;
}
/**
* Return the value associated with the column: ip
*/
public java.lang.String getIp () {
return ip;
}
/**
* Set the value related to the column: ip
* @param ip the ip value
*/
public void setIp (java.lang.String ip) {
this.ip = ip;
}
/**
* Return the value associated with the column: logtime
*/
public java.util.Date getLogtime () {
return logtime;
}
/**
* Set the value related to the column: logtime
* @param logtime the logtime value
*/
public void setLogtime (java.util.Date logtime) {
this.logtime = logtime;
}
/**
* Return the value associated with the column: visible
*/
public java.lang.String getVisible () {
return visible;
}
/**
* Set the value related to the column: visible
* @param visible the visible value
*/
public void setVisible (java.lang.String visible) {
this.visible = visible;
}
/**
* Return the value associated with the column: level
*/
public com.bean.sys.SysDimLevel getLevel () {
return level;
}
/**
* Set the value related to the column: level
* @param level the level value
*/
public void setLevel (com.bean.sys.SysDimLevel level) {
this.level = level;
}
/**
* Return the value associated with the column: group
*/
public com.bean.sys.SysGroup getGroup () {
return group;
}
/**
* Set the value related to the column: group
* @param group the group value
*/
public void setGroup (com.bean.sys.SysGroup group) {
this.group = group;
}
/**
* Return the value associated with the column: local
*/
public com.bean.sys.SysDimLocal getLocal () {
return local;
}
/**
* Set the value related to the column: local
* @param local the local value
*/
public void setLocal (com.bean.sys.SysDimLocal local) {
this.local = local;
}
/**
* Return the value associated with the column: department
*/
public com.bean.sys.SysDimDepartment getDepartment () {
return department;
}
/**
* Set the value related to the column: department
* @param department the department value
*/
public void setDepartment (com.bean.sys.SysDimDepartment department) {
this.department = department;
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof com.bean.sys.SysUser)) return false;
else {
com.bean.sys.SysUser sysUser = (com.bean.sys.SysUser) obj;
if (null == this.getId() || null == sysUser.getId()) return false;
else return (this.getId().equals(sysUser.getId()));
}
}
public int hashCode () {
if (Integer.MIN_VALUE == this.hashCode) {
if (null == this.getId()) return super.hashCode();
else {
String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
this.hashCode = hashStr.hashCode();
}
}
return this.hashCode;
}
public String toString () {
return super.toString();
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
hibernate+spring+struts一个简单例子
共70个文件
xml:21个
java:17个
class:17个
需积分: 10 669 下载量 123 浏览量
2007-08-30
10:34:01
上传
评论 1
收藏 45KB RAR 举报
温馨提示
hibernate+spring+struts一个简单例子<br><br>jar自己去下<br>test.sql 是mysql的脚本
资源推荐
资源详情
资源评论
收起资源包目录
umanager.rar (70个子文件)
umanager
src
com
dao
SysUserDAO.java 209B
imp
SysUserImp.java 526B
util
GeneralUtil.java 959B
BaseAction.java 1KB
BaseActionInterfaces.java 494B
bean
sys
SysDimDepartment.java 680B
SysGroup.hbm.xml 1KB
SysDimLevel.java 650B
SysDimLocal.hbm.xml 906B
SysDimLevel.hbm.xml 906B
SysUser.hbm.xml 2KB
SysDimDepartment.hbm.xml 916B
SysUser.java 928B
base
BaseSysDimDepartment.java 4KB
BaseSysGroup.java 5KB
BaseSysUser.java 7KB
BaseSysDimLevel.java 4KB
BaseSysDimLocal.java 4KB
SysGroup.java 769B
SysDimLocal.java 650B
logic
system
user
test
TestMapping.java 1KB
MainTest.java 80B
ehcache.xml 312B
ApplicationResource.properties 0B
log4j.properties 635B
.classpath 538B
.settings
org.eclipse.wst.common.project.facet.core.xml 341B
org.eclipse.jst.common.project.facet.core.prefs 364B
org.eclipse.wst.common.component 396B
org.eclipse.jdt.ui.prefs 99B
org.eclipse.jdt.core.prefs 330B
.metadata
src
com
bean
SysDimLevel.hbm.pageflow 194B
.project 853B
.hibernateSynchronizer3
config.properties 181B
templates
snippets
um
META-INF
MANIFEST.MF 39B
pages
system
user
test
testmapping.jsp 335B
WEB-INF
classes
com
dao
SysUserDAO.class 261B
imp
SysUserImp.class 950B
util
BaseActionInterfaces.class 347B
BaseAction.class 3KB
GeneralUtil.class 1KB
bean
sys
SysGroup.hbm.xml 1KB
SysDimLevel.class 771B
SysDimLocal.hbm.xml 906B
SysDimDepartment.class 791B
SysDimLevel.hbm.xml 906B
SysUser.hbm.xml 2KB
SysDimLocal.class 771B
SysUser.class 1KB
SysDimDepartment.hbm.xml 916B
base
BaseSysDimLevel.class 4KB
BaseSysGroup.class 5KB
BaseSysDimLocal.class 4KB
BaseSysUser.class 5KB
BaseSysDimDepartment.class 4KB
SysGroup.class 915B
logic
system
user
test
TestMapping.class 2KB
MainTest.class 267B
ehcache.xml 312B
ApplicationResource.properties 0B
log4j.properties 635B
struts-config.xml 544B
applicationContext.xml 2KB
tiles-defs.xml 1KB
validator-rules.xml 13KB
validation.xml 2KB
config
struts-config-logic.xml 262B
struts-config-test.xml 499B
lib
countries.log 0B
web.xml 1KB
共 70 条
- 1
资源评论
zdtools
- 粉丝: 0
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 全卷积网络基于voc2012数据集简单pytorch实现
- pycharm的一些介绍-用于更好的学习python
- 基于C++的程序设计大赛天梯赛L2答案(天梯赛)
- 基于python实现的三次样条插值和均值插值法实现
- Python语言教程2-python批量图片大小处理-多文件夹
- Python语言教程1-python批量图片重命名,将后缀某几个不想要的字去除
- Space Combat Kit 太空战斗套件Unity游戏开发插件资源unitypackage C#
- Universal Device Preview 通用设备预览Unity游戏开发插件资源unitypackage
- Paladin Anim Set 圣骑士动画集Unity游戏动作动画插件资源unitypackage
- 计算机财务管理期末考报表部分题目及答案.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功