basedtproperties.java

来自「一个购房管理系统,JSF+Hibernate+Mssql2」· Java 代码 · 共 190 行

JAVA
190
字号
package com.housesale.hibernate.base;

import java.io.Serializable;


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

public abstract class BaseDtproperties  implements Serializable {

	public static String REF = "Dtproperties";
	public static String PROP_VALUE = "value";
	public static String PROP_OBJECTID = "objectid";
	public static String PROP_VERSION = "version";
	public static String PROP_LVALUE = "lvalue";
	public static String PROP_ID = "id";
	public static String PROP_UVALUE = "uvalue";


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

	/**
	 * Constructor for primary key
	 */
	public BaseDtproperties (com.housesale.hibernate.DtpropertiesId id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private com.housesale.hibernate.DtpropertiesId id;

	// fields
	private java.lang.Integer objectid;
	private java.lang.String value;
	private java.lang.String uvalue;
	private java.lang.String lvalue;
	private java.lang.Integer version;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     */
	public com.housesale.hibernate.DtpropertiesId getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (com.housesale.hibernate.DtpropertiesId id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




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

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



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

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



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

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



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

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



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

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




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.housesale.hibernate.Dtproperties)) return false;
		else {
			com.housesale.hibernate.Dtproperties dtproperties = (com.housesale.hibernate.Dtproperties) obj;
			if (null == this.getId() || null == dtproperties.getId()) return false;
			else return (this.getId().equals(dtproperties.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 + =
减小字号Ctrl + -
显示快捷键?