⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 baseroleaction.java

📁 jsf+spring+ibatis 的一个程序,主要用来介绍JSF程序.
💻 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_role_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_role_action"
 */

public abstract class BaseRoleAction  implements Serializable {

	public static String REF = "RoleAction";
	public static String PROP_ACTION = "Action";
	public static String PROP_ROLE = "Role";
	public static String PROP_ID = "Id";


	// constructors
	public BaseRoleAction () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseRoleAction (java.lang.Integer id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// many to one
	private com.wxd.common.popedom.persistence.entity.Action action;
	private com.wxd.common.popedom.persistence.entity.Role role;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="role_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_no
	 */
	public com.wxd.common.popedom.persistence.entity.Action getAction () {
		return action;
	}

	/**
	 * Set the value related to the column: action_no
	 * @param action the action_no value
	 */
	public void setAction (com.wxd.common.popedom.persistence.entity.Action action) {
		this.action = action;
	}



	/**
	 * Return the value associated with the column: role_no
	 */
	public com.wxd.common.popedom.persistence.entity.Role getRole () {
		return role;
	}

	/**
	 * Set the value related to the column: role_no
	 * @param role the role_no value
	 */
	public void setRole (com.wxd.common.popedom.persistence.entity.Role role) {
		this.role = role;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.wxd.common.popedom.persistence.entity.RoleAction)) return false;
		else {
			com.wxd.common.popedom.persistence.entity.RoleAction roleAction = (com.wxd.common.popedom.persistence.entity.RoleAction) obj;
			if (null == this.getId() || null == roleAction.getId()) return false;
			else return (this.getId().equals(roleAction.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 + -