📄 abstractuserinfo.java
字号:
/*
* WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
* by MyEclipse Hibernate tool integration.
*
* Created Mon Jul 03 16:26:54 CST 2006 by MyEclipse Hibernate Tool.
*/
package org.qhit.mapping;
import java.io.Serializable;
/**
* A class that represents a row in the userinfo table.
* You can customize the behavior of this class by editing the class, {@link Userinfo()}.
* WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
* by MyEclipse Hibernate tool integration.
*/
public abstract class AbstractUserinfo
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 uid;
/** The value of the roleinfo association. */
private Roleinfo roleinfo;
/** The value of the simple uname property. */
private java.lang.String uname;
/** The value of the simple upass property. */
private java.lang.String upass;
/**
* Simple constructor of AbstractUserinfo instances.
*/
public AbstractUserinfo()
{
}
/**
* Constructor of AbstractUserinfo instances given a simple primary key.
* @param uid
*/
public AbstractUserinfo(java.lang.Integer uid)
{
this.setUid(uid);
}
/**
* Return the simple primary key value that identifies this object.
* @return java.lang.Integer
*/
public java.lang.Integer getUid()
{
return uid;
}
/**
* Set the simple primary key value that identifies this object.
* @param uid
*/
public void setUid(java.lang.Integer uid)
{
this.hashValue = 0;
this.uid = uid;
}
/**
* Return the value of the uname column.
* @return java.lang.String
*/
public java.lang.String getUname()
{
return this.uname;
}
/**
* Set the value of the uname column.
* @param uname
*/
public void setUname(java.lang.String uname)
{
this.uname = uname;
}
/**
* Return the value of the upass column.
* @return java.lang.String
*/
public java.lang.String getUpass()
{
return this.upass;
}
/**
* Set the value of the upass column.
* @param upass
*/
public void setUpass(java.lang.String upass)
{
this.upass = upass;
}
/**
* Return the value of the jse column.
* @return Roleinfo
*/
public Roleinfo getRoleinfo()
{
return this.roleinfo;
}
/**
* Set the value of the jse column.
* @param roleinfo
*/
public void setRoleinfo(Roleinfo roleinfo)
{
this.roleinfo = roleinfo;
}
/**
* 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 Userinfo))
return false;
Userinfo that = (Userinfo) rhs;
if (this.getUid() == null || that.getUid() == null)
return false;
return (this.getUid().equals(that.getUid()));
}
/**
* 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 uidValue = this.getUid() == null ? 0 : this.getUid().hashCode();
result = result * 37 + uidValue;
this.hashValue = result;
}
return this.hashValue;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -