ordersid.java
来自「一个java写的网上购物系统」· Java 代码 · 共 74 行
JAVA
74 行
package com.hb.myshop.po;
/**
* OrdersId generated by MyEclipse Persistence Tools
*/
public class OrdersId implements java.io.Serializable {
// Fields
private String orderid;
private String listid;
// Constructors
/** default constructor */
public OrdersId() {
}
/** full constructor */
public OrdersId(String orderid, String listid) {
this.orderid = orderid;
this.listid = listid;
}
// Property accessors
public String getOrderid() {
return this.orderid;
}
public void setOrderid(String orderid) {
this.orderid = orderid;
}
public String getListid() {
return this.listid;
}
public void setListid(String listid) {
this.listid = listid;
}
public boolean equals(Object other) {
if ((this == other))
return true;
if ((other == null))
return false;
if (!(other instanceof OrdersId))
return false;
OrdersId castOther = (OrdersId) other;
return ((this.getOrderid() == castOther.getOrderid()) || (this
.getOrderid() != null
&& castOther.getOrderid() != null && this.getOrderid().equals(
castOther.getOrderid())))
&& ((this.getListid() == castOther.getListid()) || (this
.getListid() != null
&& castOther.getListid() != null && this.getListid()
.equals(castOther.getListid())));
}
public int hashCode() {
int result = 17;
result = 37 * result
+ (getOrderid() == null ? 0 : this.getOrderid().hashCode());
result = 37 * result
+ (getListid() == null ? 0 : this.getListid().hashCode());
return result;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?