?? basemsg.java
字號:
package com.jeecms.auxiliary.entity.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the AUXI_MSG table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="AUXI_MSG"
*/
public abstract class BaseMsg implements Serializable {
public static String REF = "Msg";
public static String PROP_CHECK = "check";
public static String PROP_RECOMMEND = "recommend";
public static String PROP_WEBSITE = "website";
public static String PROP_CREATE_TIME = "createTime";
public static String PROP_REPLY_TIME = "replyTime";
public static String PROP_DISABLED = "disabled";
public static String PROP_IP = "ip";
public static String PROP_QQ = "qq";
public static String PROP_CTG = "ctg";
public static String PROP_CONFIG = "config";
public static String PROP_PHONE = "phone";
public static String PROP_CONTENT_MEMBER = "contentMember";
public static String PROP_EMAIL = "email";
public static String PROP_TITLE = "title";
public static String PROP_MEMBER = "member";
public static String PROP_ADMIN = "admin";
public static String PROP_ID = "id";
public static String PROP_CONTENT_ADMIN = "contentAdmin";
// constructors
public BaseMsg () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseMsg (java.lang.Long id) {
this.setId(id);
initialize();
}
/**
* Constructor for required fields
*/
public BaseMsg (
java.lang.Long id,
com.jeecms.auxiliary.entity.MsgCtg ctg,
com.jeecms.core.entity.Website website,
com.jeecms.auxiliary.entity.AuxiConfig config,
java.lang.Boolean check,
java.lang.Boolean recommend,
java.lang.Boolean disabled) {
this.setId(id);
this.setCtg(ctg);
this.setWebsite(website);
this.setConfig(config);
this.setCheck(check);
this.setRecommend(recommend);
this.setDisabled(disabled);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Long id;
// fields
private java.lang.String title;
private java.lang.String contentMember;
private java.lang.String contentAdmin;
private java.lang.String email;
private java.lang.String phone;
private java.lang.String qq;
private java.lang.String ip;
private java.util.Date createTime;
private java.util.Date replyTime;
private java.lang.Boolean check;
private java.lang.Boolean recommend;
private java.lang.Boolean disabled;
// many to one
private com.jeecms.auxiliary.entity.MsgCtg ctg;
private com.jeecms.core.entity.Website website;
private com.jeecms.auxiliary.entity.AuxiConfig config;
private com.jeecms.core.entity.Admin admin;
private com.jeecms.core.entity.Member member;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="native"
* column="MSG_ID"
*/
public java.lang.Long getId () {
return id;
}
/**
* Set the unique identifier of this class
* @param id the new ID
*/
public void setId (java.lang.Long id) {
this.id = id;
this.hashCode = Integer.MIN_VALUE;
}
/**
* Return the value associated with the column: TITLE
*/
public java.lang.String getTitle () {
return title;
}
/**
* Set the value related to the column: TITLE
* @param title the TITLE value
*/
public void setTitle (java.lang.String title) {
this.title = title;
}
/**
* Return the value associated with the column: CONTENT_MEMBER
*/
public java.lang.String getContentMember () {
return contentMember;
}
/**
* Set the value related to the column: CONTENT_MEMBER
* @param contentMember the CONTENT_MEMBER value
*/
public void setContentMember (java.lang.String contentMember) {
this.contentMember = contentMember;
}
/**
* Return the value associated with the column: CONTENT_ADMIN
*/
public java.lang.String getContentAdmin () {
return contentAdmin;
}
/**
* Set the value related to the column: CONTENT_ADMIN
* @param contentAdmin the CONTENT_ADMIN value
*/
public void setContentAdmin (java.lang.String contentAdmin) {
this.contentAdmin = contentAdmin;
}
/**
* Return the value associated with the column: EMAIL
*/
public java.lang.String getEmail () {
return email;
}
/**
* Set the value related to the column: EMAIL
* @param email the EMAIL value
*/
public void setEmail (java.lang.String email) {
this.email = email;
}
/**
* Return the value associated with the column: PHONE
*/
public java.lang.String getPhone () {
return phone;
}
/**
* Set the value related to the column: PHONE
* @param phone the PHONE value
*/
public void setPhone (java.lang.String phone) {
this.phone = phone;
}
/**
* Return the value associated with the column: QQ
*/
public java.lang.String getQq () {
return qq;
}
/**
* Set the value related to the column: QQ
* @param qq the QQ value
*/
public void setQq (java.lang.String qq) {
this.qq = qq;
}
/**
* 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: CREATE_TIME
*/
public java.util.Date getCreateTime () {
return createTime;
}
/**
* Set the value related to the column: CREATE_TIME
* @param createTime the CREATE_TIME value
*/
public void setCreateTime (java.util.Date createTime) {
this.createTime = createTime;
}
/**
* Return the value associated with the column: REPLY_TIME
*/
public java.util.Date getReplyTime () {
return replyTime;
}
/**
* Set the value related to the column: REPLY_TIME
* @param replyTime the REPLY_TIME value
*/
public void setReplyTime (java.util.Date replyTime) {
this.replyTime = replyTime;
}
/**
* Return the value associated with the column: IS_CHECK
*/
public java.lang.Boolean getCheck () {
return check;
}
/**
* Set the value related to the column: IS_CHECK
* @param check the IS_CHECK value
*/
public void setCheck (java.lang.Boolean check) {
this.check = check;
}
/**
* Return the value associated with the column: IS_RECOMMEND
*/
public java.lang.Boolean getRecommend () {
return recommend;
}
/**
* Set the value related to the column: IS_RECOMMEND
* @param recommend the IS_RECOMMEND value
*/
public void setRecommend (java.lang.Boolean recommend) {
this.recommend = recommend;
}
/**
* Return the value associated with the column: IS_DISABLED
*/
public java.lang.Boolean getDisabled () {
return disabled;
}
/**
* Set the value related to the column: IS_DISABLED
* @param disabled the IS_DISABLED value
*/
public void setDisabled (java.lang.Boolean disabled) {
this.disabled = disabled;
}
/**
* Return the value associated with the column: MSGCTG_ID
*/
public com.jeecms.auxiliary.entity.MsgCtg getCtg () {
return ctg;
}
/**
* Set the value related to the column: MSGCTG_ID
* @param ctg the MSGCTG_ID value
*/
public void setCtg (com.jeecms.auxiliary.entity.MsgCtg ctg) {
this.ctg = ctg;
}
/**
* Return the value associated with the column: WEBSITE_ID
*/
public com.jeecms.core.entity.Website getWebsite () {
return website;
}
/**
* Set the value related to the column: WEBSITE_ID
* @param website the WEBSITE_ID value
*/
public void setWebsite (com.jeecms.core.entity.Website website) {
this.website = website;
}
/**
* Return the value associated with the column: CONFIG_ID
*/
public com.jeecms.auxiliary.entity.AuxiConfig getConfig () {
return config;
}
/**
* Set the value related to the column: CONFIG_ID
* @param config the CONFIG_ID value
*/
public void setConfig (com.jeecms.auxiliary.entity.AuxiConfig config) {
this.config = config;
}
/**
* Return the value associated with the column: ADMIN_ID
*/
public com.jeecms.core.entity.Admin getAdmin () {
return admin;
}
/**
* Set the value related to the column: ADMIN_ID
* @param admin the ADMIN_ID value
*/
public void setAdmin (com.jeecms.core.entity.Admin admin) {
this.admin = admin;
}
/**
* Return the value associated with the column: MEMBER_ID
*/
public com.jeecms.core.entity.Member getMember () {
return member;
}
/**
* Set the value related to the column: MEMBER_ID
* @param member the MEMBER_ID value
*/
public void setMember (com.jeecms.core.entity.Member member) {
this.member = member;
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof com.jeecms.auxiliary.entity.Msg)) return false;
else {
com.jeecms.auxiliary.entity.Msg msg = (com.jeecms.auxiliary.entity.Msg) obj;
if (null == this.getId() || null == msg.getId()) return false;
else return (this.getId().equals(msg.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();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -