📄 currentassets.java
字号:
/*
* CurrentAssets.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;
/**
* 实体类 CurrentAssets
*
* @author Virlene Cheng
*/
@Entity
@Table(name = "CurrentAssets")
public class CurrentAssets implements Serializable
{
@Id
@Column(name = "AssetTime", nullable = false)
@Temporal(TemporalType.TIMESTAMP)
private Date assetTime;
@Column(name = "Cash", nullable = false)
private double cash;
@Column(name = "ShortTermInvestments")
private Double shortTermInvestments;
@Column(name = "Prepayments")
private Double prepayments;
@Column(name = "Inventories")
private Double inventories;
@Column(name = "TaxRecoverable")
private Double taxRecoverable;
/** Creates a new instance of CurrentAssets */
public CurrentAssets()
{
}
/**
* 使用指定的值创建 CurrentAssets 的新实例。
* @param assetTime,CurrentAssets 的 assetTime
*/
public CurrentAssets(Date assetTime)
{
this.assetTime = assetTime;
}
/**
* 使用指定的值创建 CurrentAssets 的新实例。
* @param assetTime,CurrentAssets 的 assetTime
* @param cash,CurrentAssets 的 cash
*/
public CurrentAssets(Date assetTime, double cash)
{
this.assetTime = assetTime;
this.cash = cash;
}
/**
* 获取此 CurrentAssets 的 assetTime。
* @return assetTime
*/
public Date getAssetTime()
{
return this.assetTime;
}
/**
* 将此 CurrentAssets 的 assetTime 设置为指定的值。
* @param assetTime,新建 assetTime
*/
public void setAssetTime(Date assetTime)
{
this.assetTime = assetTime;
}
/**
* 获取此 CurrentAssets 的 cash。
* @return cash
*/
public double getCash()
{
return this.cash;
}
/**
* 将此 CurrentAssets 的 cash 设置为指定的值。
* @param cash,新建 cash
*/
public void setCash(double cash)
{
this.cash = cash;
}
/**
* 获取此 CurrentAssets 的 shortTermInvestments。
* @return shortTermInvestments
*/
public Double getShortTermInvestments()
{
return this.shortTermInvestments;
}
/**
* 将此 CurrentAssets 的 shortTermInvestments 设置为指定的值。
* @param shortTermInvestments,新建 shortTermInvestments
*/
public void setShortTermInvestments(Double shortTermInvestments)
{
this.shortTermInvestments = shortTermInvestments;
}
/**
* 获取此 CurrentAssets 的 prepayments。
* @return prepayments
*/
public Double getPrepayments()
{
return this.prepayments;
}
/**
* 将此 CurrentAssets 的 prepayments 设置为指定的值。
* @param prepayments,新建 prepayments
*/
public void setPrepayments(Double prepayments)
{
this.prepayments = prepayments;
}
/**
* 获取此 CurrentAssets 的 inventories。
* @return inventories
*/
public Double getInventories()
{
return this.inventories;
}
/**
* 将此 CurrentAssets 的 inventories 设置为指定的值。
* @param inventories,新建 inventories
*/
public void setInventories(Double inventories)
{
this.inventories = inventories;
}
/**
* 获取此 CurrentAssets 的 taxRecoverable。
* @return taxRecoverable
*/
public Double getTaxRecoverable()
{
return this.taxRecoverable;
}
/**
* 将此 CurrentAssets 的 taxRecoverable 设置为指定的值。
* @param taxRecoverable,新建 taxRecoverable
*/
public void setTaxRecoverable(Double taxRecoverable)
{
this.taxRecoverable = taxRecoverable;
}
/**
* 返回对象的散列代码值。该实现根据此对象
* 中 id 字段计算散列代码值。
* @return 此对象的散列代码值。
*/
@Override
public int hashCode()
{
int hash = 0;
hash += (this.assetTime != null ? this.assetTime.hashCode() : 0);
return hash;
}
/**
* 确定其他对象是否等于此 CurrentAssets。当且仅当
* 参数不为 null 且该参数是具有与此对象相同 id 字段值的 CurrentAssets 对象时,
* 结果才为 <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 CurrentAssets)) {
return false;
}
CurrentAssets other = (CurrentAssets)object;
if (this.assetTime != other.assetTime && (this.assetTime == null || !this.assetTime.equals(other.assetTime))) return false;
return true;
}
/**
* 返回对象的字符串表示法。该实现根据 id 字段
* 构造此表示法。
* @return 对象的字符串表示法。
*/
@Override
public String toString()
{
return "temp.CurrentAssets[assetTime=" + assetTime + "]";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -