⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ordersid.java

📁 一个java写的网上购物系统
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -