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

📄 noncurrentliability.java

📁 Athena酒店小组_Athena酒店管理系统
💻 JAVA
字号:
/*
 * NonCurrentLiability.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 java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

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

	@Id
	@Column(name = "LiabilityTime", nullable = false)
	@Temporal(TemporalType.TIMESTAMP)
	private Date liabilityTime;

	@Column(name = "LongTermLoan")
	private Double longTermLoan;

	@Column(name = "BondPayables")
	private Double bondPayables;

	@Column(name = "OtherLongTermLiablity")
	private Double otherLongTermLiablity;
    
    /** Creates a new instance of NonCurrentLiability */
    public NonCurrentLiability()
    {
    }

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

	/**
	 * 获取此 NonCurrentLiability 的 liabilityTime。
	 * @return liabilityTime
	 */
	public Date getLiabilityTime()
	{
		return this.liabilityTime;
	}

	/**
	 * 将此 NonCurrentLiability 的 liabilityTime 设置为指定的值。
	 * @param liabilityTime,新建 liabilityTime
	 */
	public void setLiabilityTime(Date liabilityTime)
	{
		this.liabilityTime = liabilityTime;
	}

	/**
	 * 获取此 NonCurrentLiability 的 longTermLoan。
	 * @return longTermLoan
	 */
	public Double getLongTermLoan()
	{
		return this.longTermLoan;
	}

	/**
	 * 将此 NonCurrentLiability 的 longTermLoan 设置为指定的值。
	 * @param longTermLoan,新建 longTermLoan
	 */
	public void setLongTermLoan(Double longTermLoan)
	{
		this.longTermLoan = longTermLoan;
	}

	/**
	 * 获取此 NonCurrentLiability 的 bondPayables。
	 * @return bondPayables
	 */
	public Double getBondPayables()
	{
		return this.bondPayables;
	}

	/**
	 * 将此 NonCurrentLiability 的 bondPayables 设置为指定的值。
	 * @param bondPayables,新建 bondPayables
	 */
	public void setBondPayables(Double bondPayables)
	{
		this.bondPayables = bondPayables;
	}

	/**
	 * 获取此 NonCurrentLiability 的 otherLongTermLiablity。
	 * @return otherLongTermLiablity
	 */
	public Double getOtherLongTermLiablity()
	{
		return this.otherLongTermLiablity;
	}

	/**
	 * 将此 NonCurrentLiability 的 otherLongTermLiablity 设置为指定的值。
	 * @param otherLongTermLiablity,新建 otherLongTermLiablity
	 */
	public void setOtherLongTermLiablity(Double otherLongTermLiablity)
	{
		this.otherLongTermLiablity = otherLongTermLiablity;
	}

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

	/**
	 * 确定其他对象是否等于此 NonCurrentLiability。当且仅当
	 * 参数不为 null 且该参数是具有与此对象相同 id 字段值的 NonCurrentLiability 对象时,
	 * 结果才为 <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 NonCurrentLiability)) {
			return false;
		}
		NonCurrentLiability other = (NonCurrentLiability)object;
		if (this.liabilityTime != other.liabilityTime && (this.liabilityTime == null || !this.liabilityTime.equals(other.liabilityTime))) return false;
		return true;
	}

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

⌨️ 快捷键说明

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