📄 lineitemid.java
字号:
package org.itfuture.www.po;
/**
* LineitemId generated by MyEclipse - Hibernate Tools
*/
public class LineitemId implements java.io.Serializable {
// Fields
private Orders orders;
private Long linenum;
// Constructors
/** default constructor */
public LineitemId() {
}
/** full constructor */
public LineitemId(Orders orders, Long linenum) {
this.orders = orders;
this.linenum = linenum;
}
// Property accessors
public Orders getOrders() {
return this.orders;
}
public void setOrders(Orders orders) {
this.orders = orders;
}
public Long getLinenum() {
return this.linenum;
}
public void setLinenum(Long linenum) {
this.linenum = linenum;
}
public boolean equals(Object other) {
if ( (this == other ) ) return true;
if ( (other == null ) ) return false;
if ( !(other instanceof LineitemId) ) return false;
LineitemId castOther = ( LineitemId ) other;
return ( (this.getOrders()==castOther.getOrders()) || ( this.getOrders()!=null && castOther.getOrders()!=null && this.getOrders().equals(castOther.getOrders()) ) ) && ( (this.getLinenum()==castOther.getLinenum()) || ( this.getLinenum()!=null && castOther.getLinenum()!=null && this.getLinenum().equals(castOther.getLinenum()) ) );
}
public int hashCode() {
int result = 17;
result = 37 * result + ( getOrders() == null ? 0 : this.getOrders().hashCode() );
result = 37 * result + ( getLinenum() == null ? 0 : this.getLinenum().hashCode() );
return result;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -