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

📄 dtproperties.java

📁 Athena酒店小组_Athena酒店管理系统
💻 JAVA
字号:
/*
 * Dtproperties.java
 *
 * Created on 2007年6月4日, 下午10:07
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package temp;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;

/**
 * 实体类 Dtproperties
 * 
 * @author Virlene Cheng
 */
@Entity
@Table(name = "dtproperties")
public class Dtproperties implements Serializable
{

	/**
	 * EmbeddedId 主键字段
	 */
	@EmbeddedId
	protected DtpropertiesPK dtpropertiesPK;

	@Column(name = "objectid")
	private Integer objectid;

	@Column(name = "value")
	private String value;

	@Column(name = "uvalue")
	private String uvalue;

	@Lob
	@Column(name = "lvalue")
	private byte [] lvalue;

	@Column(name = "version", nullable = false)
	private int version;
    
    /** Creates a new instance of Dtproperties */
    public Dtproperties()
    {
    }

	/**
	 * 使用指定的值创建 Dtproperties 的新实例。
	 * @param dtpropertiesPK,Dtproperties 的 dtpropertiesPK
	 */
	public Dtproperties(DtpropertiesPK dtpropertiesPK)
	{
		this.dtpropertiesPK = dtpropertiesPK;
	}

	/**
	 * 使用指定的值创建 Dtproperties 的新实例。
	 * @param dtpropertiesPK,Dtproperties 的 dtpropertiesPK
	 * @param version,Dtproperties 的 version
	 */
	public Dtproperties(DtpropertiesPK dtpropertiesPK, int version)
	{
		this.dtpropertiesPK = dtpropertiesPK;
		this.version = version;
	}

	/**
	 * 使用指定的值创建 DtpropertiesPK 的新实例。
	 * @param property,DtpropertiesPK 的 property
	 * @param id,DtpropertiesPK 的 id
	 */
	public Dtproperties(String property, int id)
	{
		this.dtpropertiesPK = new DtpropertiesPK(property, id);
	}

	/**
	 * 获取此 Dtproperties 的 dtpropertiesPK。
	 * @return dtpropertiesPK
	 */
	public DtpropertiesPK getDtpropertiesPK()
	{
		return this.dtpropertiesPK;
	}

	/**
	 * 将此 Dtproperties 的 dtpropertiesPK 设置为指定的值。
	 * @param dtpropertiesPK,新建 dtpropertiesPK
	 */
	public void setDtpropertiesPK(DtpropertiesPK dtpropertiesPK)
	{
		this.dtpropertiesPK = dtpropertiesPK;
	}

	/**
	 * 获取此 Dtproperties 的 objectid。
	 * @return objectid
	 */
	public Integer getObjectid()
	{
		return this.objectid;
	}

	/**
	 * 将此 Dtproperties 的 objectid 设置为指定的值。
	 * @param objectid,新建 objectid
	 */
	public void setObjectid(Integer objectid)
	{
		this.objectid = objectid;
	}

	/**
	 * 获取此 Dtproperties 的 value。
	 * @return value
	 */
	public String getValue()
	{
		return this.value;
	}

	/**
	 * 将此 Dtproperties 的 value 设置为指定的值。
	 * @param value,新建 value
	 */
	public void setValue(String value)
	{
		this.value = value;
	}

	/**
	 * 获取此 Dtproperties 的 uvalue。
	 * @return uvalue
	 */
	public String getUvalue()
	{
		return this.uvalue;
	}

	/**
	 * 将此 Dtproperties 的 uvalue 设置为指定的值。
	 * @param uvalue,新建 uvalue
	 */
	public void setUvalue(String uvalue)
	{
		this.uvalue = uvalue;
	}

	/**
	 * 获取此 Dtproperties 的 lvalue。
	 * @return lvalue
	 */
	public byte [] getLvalue()
	{
		return this.lvalue;
	}

	/**
	 * 将此 Dtproperties 的 lvalue 设置为指定的值。
	 * @param lvalue,新建 lvalue
	 */
	public void setLvalue(byte [] lvalue)
	{
		this.lvalue = lvalue;
	}

	/**
	 * 获取此 Dtproperties 的 version。
	 * @return version
	 */
	public int getVersion()
	{
		return this.version;
	}

	/**
	 * 将此 Dtproperties 的 version 设置为指定的值。
	 * @param version,新建 version
	 */
	public void setVersion(int version)
	{
		this.version = version;
	}

	/**
	 * 返回对象的散列代码值。该实现根据此对象
	 * 中 id 字段计算散列代码值。
	 * @return 此对象的散列代码值。
	 */
	@Override
	public int hashCode()
	{
		int hash = 0;
		hash += (this.dtpropertiesPK != null ? this.dtpropertiesPK.hashCode() : 0);
		return hash;
	}

	/**
	 * 确定其他对象是否等于此 Dtproperties。当且仅当
	 * 参数不为 null 且该参数是具有与此对象相同 id 字段值的 Dtproperties 对象时,
	 * 结果才为 <code>true</code>。
	 * @param 对象,要比较的引用对象
	 * 如果此对象与参数相同,则 @return <code>true</code>;
	 * 否则为 <code>false</code>。
	 */
	@Override
	public boolean equals(Object object)
	{
		// TODO: Warning - this method won't work in the case the id fields are not set
		if (!(object instanceof Dtproperties)) {
			return false;
		}
		Dtproperties other = (Dtproperties)object;
		if (this.dtpropertiesPK != other.dtpropertiesPK && (this.dtpropertiesPK == null || !this.dtpropertiesPK.equals(other.dtpropertiesPK))) return false;
		return true;
	}

	/**
	 * 返回对象的字符串表示法。该实现根据 id 字段
	 * 构造此表示法。
	 * @return 对象的字符串表示法。
	 */
	@Override
	public String toString()
	{
		return "temp.Dtproperties[dtpropertiesPK=" + dtpropertiesPK + "]";
	}
    
}

⌨️ 快捷键说明

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