?? basedownlanguage.java
字號:
package com.jeecms.download.entity.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the DOWN_LANGUAGE table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="DOWN_LANGUAGE"
*/
public abstract class BaseDownLanguage implements Serializable {
public static String REF = "DownLanguage";
public static String PROP_DESCRIPTION = "description";
public static String PROP_WEBSITE = "website";
public static String PROP_DISABLED = "disabled";
public static String PROP_PRIORITY = "priority";
public static String PROP_NAME = "name";
public static String PROP_ID = "id";
// constructors
public BaseDownLanguage () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseDownLanguage (java.lang.Long id) {
this.setId(id);
initialize();
}
/**
* Constructor for required fields
*/
public BaseDownLanguage (
java.lang.Long id,
com.jeecms.core.entity.Website website,
java.lang.Boolean disabled) {
this.setId(id);
this.setWebsite(website);
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 name;
private java.lang.String description;
private java.lang.Integer priority;
private java.lang.Boolean disabled;
// many to one
private com.jeecms.core.entity.Website website;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="native"
* column="LANGUAGE_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: 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: DESCRIPTION
*/
public java.lang.String getDescription () {
return description;
}
/**
* Set the value related to the column: DESCRIPTION
* @param description the DESCRIPTION value
*/
public void setDescription (java.lang.String description) {
this.description = description;
}
/**
* Return the value associated with the column: PRIORITY
*/
public java.lang.Integer getPriority () {
return priority;
}
/**
* Set the value related to the column: PRIORITY
* @param priority the PRIORITY value
*/
public void setPriority (java.lang.Integer priority) {
this.priority = priority;
}
/**
* 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: 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;
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof com.jeecms.download.entity.DownLanguage)) return false;
else {
com.jeecms.download.entity.DownLanguage downLanguage = (com.jeecms.download.entity.DownLanguage) obj;
if (null == this.getId() || null == downLanguage.getId()) return false;
else return (this.getId().equals(downLanguage.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 + -