📄 record.java
字号:
package cn.hxex.library.model;
import java.sql.Timestamp;
/**
* 商品库存信息对象
*
* @author galaxy
*
*/
public class Record
{
// 主键
private String id;
// 时间
private Timestamp recordtime;
// 商品
private Product product;
// 数量
private Integer num;
/**
* @return Returns the id.
*/
public String getId()
{
return id;
}
/**
* @param id The id to set.
*/
public void setId(String id)
{
this.id = id;
}
/**
* @return Returns the num.
*/
public Integer getNum()
{
return num;
}
/**
* @param num The num to set.
*/
public void setNum(Integer num)
{
this.num = num;
}
/**
* @return Returns the product.
*/
public Product getProduct()
{
return product;
}
/**
* @param product The product to set.
*/
public void setProduct(Product product)
{
this.product = product;
}
/**
* @return Returns the recordtime.
*/
public Timestamp getRecordtime()
{
return recordtime;
}
/**
* @param recordtime The recordtime to set.
*/
public void setRecordtime(Timestamp recordtime)
{
this.recordtime = recordtime;
}
public int hashcode()
{
if( id!=null )
this.id.hashCode();
return 0;
}
public boolean equals( Object obj )
{
if( obj==null ) return false;
if( this==obj ) return true;
if( obj instanceof Record )
{
if( this.id!=null )
return this.id.equals( ((Record)obj).getId() );
}
return false;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -