📄 baseaction.java
字号:
package com.wxd.common.popedom.persistence.entity.base;
import java.io.Serializable;
/**
* This is an object that contains data related to the tb_com_action table.
* Do not modify this class because it will be overwritten if the configuration file
* related to this class is modified.
*
* @hibernate.class
* table="tb_com_action"
*/
public abstract class BaseAction implements Serializable {
public static String REF = "Action";
public static String PROP_MODULE = "Module";
public static String PROP_ACTION_PRIORITY = "ActionPriority";
public static String PROP_ACTION_VIEW = "ActionView";
public static String PROP_ACTION_ID = "ActionId";
public static String PROP_ACTION_DESCRIBE = "ActionDescribe";
public static String PROP_ID = "Id";
// constructors
public BaseAction () {
initialize();
}
/**
* Constructor for primary key
*/
public BaseAction (java.lang.Integer id) {
this.setId(id);
initialize();
}
/**
* Constructor for required fields
*/
public BaseAction (
java.lang.Integer id,
com.wxd.common.popedom.persistence.entity.Module module,
java.lang.String actionId,
java.lang.String actionView,
java.lang.String actionPriority) {
this.setId(id);
this.setModule(module);
this.setActionId(actionId);
this.setActionView(actionView);
this.setActionPriority(actionPriority);
initialize();
}
protected void initialize () {}
private int hashCode = Integer.MIN_VALUE;
// primary key
private java.lang.Integer id;
// fields
private java.lang.String actionId;
private java.lang.String actionView;
private java.lang.String actionPriority;
private java.lang.String actionDescribe;
// many to one
private com.wxd.common.popedom.persistence.entity.Module module;
// collections
private java.util.Set<com.wxd.common.popedom.persistence.entity.RoleAction> roleActions;
/**
* Return the unique identifier of this class
* @hibernate.id
* generator-class="increment"
* column="action_no"
*/
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: action_id
*/
public java.lang.String getActionId () {
return actionId;
}
/**
* Set the value related to the column: action_id
* @param actionId the action_id value
*/
public void setActionId (java.lang.String actionId) {
this.actionId = actionId;
}
/**
* Return the value associated with the column: action_view
*/
public java.lang.String getActionView () {
return actionView;
}
/**
* Set the value related to the column: action_view
* @param actionView the action_view value
*/
public void setActionView (java.lang.String actionView) {
this.actionView = actionView;
}
/**
* Return the value associated with the column: action_priority
*/
public java.lang.String getActionPriority () {
return actionPriority;
}
/**
* Set the value related to the column: action_priority
* @param actionPriority the action_priority value
*/
public void setActionPriority (java.lang.String actionPriority) {
this.actionPriority = actionPriority;
}
/**
* Return the value associated with the column: action_describe
*/
public java.lang.String getActionDescribe () {
return actionDescribe;
}
/**
* Set the value related to the column: action_describe
* @param actionDescribe the action_describe value
*/
public void setActionDescribe (java.lang.String actionDescribe) {
this.actionDescribe = actionDescribe;
}
/**
* Return the value associated with the column: module_no
*/
public com.wxd.common.popedom.persistence.entity.Module getModule () {
return module;
}
/**
* Set the value related to the column: module_no
* @param module the module_no value
*/
public void setModule (com.wxd.common.popedom.persistence.entity.Module module) {
this.module = module;
}
/**
* Return the value associated with the column: RoleActions
*/
public java.util.Set<com.wxd.common.popedom.persistence.entity.RoleAction> getRoleActions () {
return roleActions;
}
/**
* Set the value related to the column: RoleActions
* @param roleActions the RoleActions value
*/
public void setRoleActions (java.util.Set<com.wxd.common.popedom.persistence.entity.RoleAction> roleActions) {
this.roleActions = roleActions;
}
public void addToRoleActions (com.wxd.common.popedom.persistence.entity.RoleAction roleAction) {
if (null == getRoleActions()) setRoleActions(new java.util.TreeSet<com.wxd.common.popedom.persistence.entity.RoleAction>());
getRoleActions().add(roleAction);
}
public boolean equals (Object obj) {
if (null == obj) return false;
if (!(obj instanceof com.wxd.common.popedom.persistence.entity.Action)) return false;
else {
com.wxd.common.popedom.persistence.entity.Action action = (com.wxd.common.popedom.persistence.entity.Action) obj;
if (null == this.getId() || null == action.getId()) return false;
else return (this.getId().equals(action.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 + -