📄 rpinfo.java
字号:
/*
* RPInfo.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.Lob;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
/**
* 实体类 RPInfo
*
* @author Virlene Cheng
*/
@Entity
@Table(name = "RPInfo")
public class RPInfo implements Serializable
{
@Id
@Column(name = "RPId", nullable = false)
private Integer rPId;
@Column(name = "RPType", nullable = false)
private String rPType;
@Column(name = "RPMoney")
private Double rPMoney;
@Column(name = "RPItem")
private String rPItem;
@Column(name = "Description")
private String description;
@Column(name = "ExecutorId")
private String executorId;
@Column(name = "ExecuteDate")
@Temporal(TemporalType.TIMESTAMP)
private Date executeDate;
@Lob
@Column(name = "Remark")
private String remark;
/** Creates a new instance of RPInfo */
public RPInfo()
{
}
/**
* 使用指定的值创建 RPInfo 的新实例。
* @param rPId,RPInfo 的 rPId
*/
public RPInfo(Integer rPId)
{
this.rPId = rPId;
}
/**
* 使用指定的值创建 RPInfo 的新实例。
* @param rPId,RPInfo 的 rPId
* @param rPType,RPInfo 的 rPType
*/
public RPInfo(Integer rPId, String rPType)
{
this.rPId = rPId;
this.rPType = rPType;
}
/**
* 获取此 RPInfo 的 rPId。
* @return rPId
*/
public Integer getRPId()
{
return this.rPId;
}
/**
* 将此 RPInfo 的 rPId 设置为指定的值。
* @param rPId,新建 rPId
*/
public void setRPId(Integer rPId)
{
this.rPId = rPId;
}
/**
* 获取此 RPInfo 的 rPType。
* @return rPType
*/
public String getRPType()
{
return this.rPType;
}
/**
* 将此 RPInfo 的 rPType 设置为指定的值。
* @param rPType,新建 rPType
*/
public void setRPType(String rPType)
{
this.rPType = rPType;
}
/**
* 获取此 RPInfo 的 rPMoney。
* @return rPMoney
*/
public Double getRPMoney()
{
return this.rPMoney;
}
/**
* 将此 RPInfo 的 rPMoney 设置为指定的值。
* @param rPMoney,新建 rPMoney
*/
public void setRPMoney(Double rPMoney)
{
this.rPMoney = rPMoney;
}
/**
* 获取此 RPInfo 的 rPItem。
* @return rPItem
*/
public String getRPItem()
{
return this.rPItem;
}
/**
* 将此 RPInfo 的 rPItem 设置为指定的值。
* @param rPItem,新建 rPItem
*/
public void setRPItem(String rPItem)
{
this.rPItem = rPItem;
}
/**
* 获取此 RPInfo 的 description。
* @return description
*/
public String getDescription()
{
return this.description;
}
/**
* 将此 RPInfo 的 description 设置为指定的值。
* @param description,新建 description
*/
public void setDescription(String description)
{
this.description = description;
}
/**
* 获取此 RPInfo 的 executorId。
* @return executorId
*/
public String getExecutorId()
{
return this.executorId;
}
/**
* 将此 RPInfo 的 executorId 设置为指定的值。
* @param executorId,新建 executorId
*/
public void setExecutorId(String executorId)
{
this.executorId = executorId;
}
/**
* 获取此 RPInfo 的 executeDate。
* @return executeDate
*/
public Date getExecuteDate()
{
return this.executeDate;
}
/**
* 将此 RPInfo 的 executeDate 设置为指定的值。
* @param executeDate,新建 executeDate
*/
public void setExecuteDate(Date executeDate)
{
this.executeDate = executeDate;
}
/**
* 获取此 RPInfo 的 remark。
* @return remark
*/
public String getRemark()
{
return this.remark;
}
/**
* 将此 RPInfo 的 remark 设置为指定的值。
* @param remark,新建 remark
*/
public void setRemark(String remark)
{
this.remark = remark;
}
/**
* 返回对象的散列代码值。该实现根据此对象
* 中 id 字段计算散列代码值。
* @return 此对象的散列代码值。
*/
@Override
public int hashCode()
{
int hash = 0;
hash += (this.rPId != null ? this.rPId.hashCode() : 0);
return hash;
}
/**
* 确定其他对象是否等于此 RPInfo。当且仅当
* 参数不为 null 且该参数是具有与此对象相同 id 字段值的 RPInfo 对象时,
* 结果才为 <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 RPInfo)) {
return false;
}
RPInfo other = (RPInfo)object;
if (this.rPId != other.rPId && (this.rPId == null || !this.rPId.equals(other.rPId))) return false;
return true;
}
/**
* 返回对象的字符串表示法。该实现根据 id 字段
* 构造此表示法。
* @return 对象的字符串表示法。
*/
@Override
public String toString()
{
return "temp.RPInfo[rPId=" + rPId + "]";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -