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

📄 basensattachment.java

📁 一个成熟的论坛
💻 JAVA
字号:
package com.singnet.bean.base;

import java.lang.Comparable;
import java.io.Serializable;


/**
 * This is an object that contains data related to the ns_attachment table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="ns_attachment"
 */

public abstract class BaseNsAttachment  implements Comparable, Serializable {

	public static String REF = "NsAttachment";
	public static String PROP_ATT_EXTERN = "attExtern";
	public static String PROP_ATT_PID = "attPid";
	public static String PROP_ID = "id";
	public static String PROP_ATT_SIZE = "attSize";
	public static String PROP_ATT_URL = "attUrl";


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

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

	/**
	 * Constructor for required fields
	 */
	public BaseNsAttachment (
		java.lang.Long id,
		java.lang.Long attPid,
		java.lang.String attUrl,
		java.lang.String attExtern,
		java.lang.Integer attSize) {

		this.setId(id);
		this.setAttPid(attPid);
		this.setAttUrl(attUrl);
		this.setAttExtern(attExtern);
		this.setAttSize(attSize);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

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

	// fields
	private java.lang.Long attPid;
	private java.lang.String attUrl;
	private java.lang.String attExtern;
	private java.lang.Integer attSize;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="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: att_pid
	 */
	public java.lang.Long getAttPid () {
		return attPid;
	}

	/**
	 * Set the value related to the column: att_pid
	 * @param attPid the att_pid value
	 */
	public void setAttPid (java.lang.Long attPid) {
		this.attPid = attPid;
	}



	/**
	 * Return the value associated with the column: att_url
	 */
	public java.lang.String getAttUrl () {
		return attUrl;
	}

	/**
	 * Set the value related to the column: att_url
	 * @param attUrl the att_url value
	 */
	public void setAttUrl (java.lang.String attUrl) {
		this.attUrl = attUrl;
	}



	/**
	 * Return the value associated with the column: att_extern
	 */
	public java.lang.String getAttExtern () {
		return attExtern;
	}

	/**
	 * Set the value related to the column: att_extern
	 * @param attExtern the att_extern value
	 */
	public void setAttExtern (java.lang.String attExtern) {
		this.attExtern = attExtern;
	}



	/**
	 * Return the value associated with the column: att_size
	 */
	public java.lang.Integer getAttSize () {
		return attSize;
	}

	/**
	 * Set the value related to the column: att_size
	 * @param attSize the att_size value
	 */
	public void setAttSize (java.lang.Integer attSize) {
		this.attSize = attSize;
	}





	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.singnet.bean.NsAttachment)) return false;
		else {
			com.singnet.bean.NsAttachment nsAttachment = (com.singnet.bean.NsAttachment) obj;
			if (null == this.getId() || null == nsAttachment.getId()) return false;
			else return (this.getId().equals(nsAttachment.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 int compareTo (Object obj) {
		if (obj.hashCode() > hashCode()) return 1;
		else if (obj.hashCode() < hashCode()) return -1;
		else return 0;
	}

	public String toString () {
		return super.toString();
	}


}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -