📄 currentliability.java
字号:
/*
* CurrentLiability.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;
/**
* 实体类 CurrentLiability
*
* @author Virlene Cheng
*/
@Entity
@Table(name = "CurrentLiability")
public class CurrentLiability implements Serializable
{
@Id
@Column(name = "LiabilityTime", nullable = false)
@Temporal(TemporalType.TIMESTAMP)
private Date liabilityTime;
@Column(name = "ShortTermLoan")
private Double shortTermLoan;
@Column(name = "SalaryPayable", nullable = false)
private double salaryPayable;
@Column(name = "TaxPayable", nullable = false)
private double taxPayable;
@Column(name = "AccrualsPayable")
private Double accrualsPayable;
/** Creates a new instance of CurrentLiability */
public CurrentLiability()
{
}
/**
* 使用指定的值创建 CurrentLiability 的新实例。
* @param liabilityTime,CurrentLiability 的 liabilityTime
*/
public CurrentLiability(Date liabilityTime)
{
this.liabilityTime = liabilityTime;
}
/**
* 使用指定的值创建 CurrentLiability 的新实例。
* @param liabilityTime,CurrentLiability 的 liabilityTime
* @param salaryPayable,CurrentLiability 的 salaryPayable
* @param taxPayable,CurrentLiability 的 taxPayable
*/
public CurrentLiability(Date liabilityTime, double salaryPayable, double taxPayable)
{
this.liabilityTime = liabilityTime;
this.salaryPayable = salaryPayable;
this.taxPayable = taxPayable;
}
/**
* 获取此 CurrentLiability 的 liabilityTime。
* @return liabilityTime
*/
public Date getLiabilityTime()
{
return this.liabilityTime;
}
/**
* 将此 CurrentLiability 的 liabilityTime 设置为指定的值。
* @param liabilityTime,新建 liabilityTime
*/
public void setLiabilityTime(Date liabilityTime)
{
this.liabilityTime = liabilityTime;
}
/**
* 获取此 CurrentLiability 的 shortTermLoan。
* @return shortTermLoan
*/
public Double getShortTermLoan()
{
return this.shortTermLoan;
}
/**
* 将此 CurrentLiability 的 shortTermLoan 设置为指定的值。
* @param shortTermLoan,新建 shortTermLoan
*/
public void setShortTermLoan(Double shortTermLoan)
{
this.shortTermLoan = shortTermLoan;
}
/**
* 获取此 CurrentLiability 的 salaryPayable。
* @return salaryPayable
*/
public double getSalaryPayable()
{
return this.salaryPayable;
}
/**
* 将此 CurrentLiability 的 salaryPayable 设置为指定的值。
* @param salaryPayable,新建 salaryPayable
*/
public void setSalaryPayable(double salaryPayable)
{
this.salaryPayable = salaryPayable;
}
/**
* 获取此 CurrentLiability 的 taxPayable。
* @return taxPayable
*/
public double getTaxPayable()
{
return this.taxPayable;
}
/**
* 将此 CurrentLiability 的 taxPayable 设置为指定的值。
* @param taxPayable,新建 taxPayable
*/
public void setTaxPayable(double taxPayable)
{
this.taxPayable = taxPayable;
}
/**
* 获取此 CurrentLiability 的 accrualsPayable。
* @return accrualsPayable
*/
public Double getAccrualsPayable()
{
return this.accrualsPayable;
}
/**
* 将此 CurrentLiability 的 accrualsPayable 设置为指定的值。
* @param accrualsPayable,新建 accrualsPayable
*/
public void setAccrualsPayable(Double accrualsPayable)
{
this.accrualsPayable = accrualsPayable;
}
/**
* 返回对象的散列代码值。该实现根据此对象
* 中 id 字段计算散列代码值。
* @return 此对象的散列代码值。
*/
@Override
public int hashCode()
{
int hash = 0;
hash += (this.liabilityTime != null ? this.liabilityTime.hashCode() : 0);
return hash;
}
/**
* 确定其他对象是否等于此 CurrentLiability。当且仅当
* 参数不为 null 且该参数是具有与此对象相同 id 字段值的 CurrentLiability 对象时,
* 结果才为 <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 CurrentLiability)) {
return false;
}
CurrentLiability other = (CurrentLiability)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.CurrentLiability[liabilityTime=" + liabilityTime + "]";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -