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

📄 vtypeid.java

📁 构建一个以商品销售为主体的电子商城,功能描叙如下: 1.按商品大类及商品名称进行模糊查询 2.实现网上购物 3.新品及特价商品展示 4.商品销售排行
💻 JAVA
字号:
package com.lzw.model;

public class VTypeId implements java.io.Serializable {
	private Integer id;

	private String superType;

	private String subType;

	private Integer subId;

	public VTypeId() {
	}

	public VTypeId(Integer id, String superType, String subType, Integer subId) {
		this.id = id;
		this.superType = superType;
		this.subType = subType;
		this.subId = subId;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getSuperType() {
		return this.superType;
	}

	public void setSuperType(String superType) {
		this.superType = superType;
	}

	public String getSubType() {
		return this.subType;
	}

	public void setSubType(String subType) {
		this.subType = subType;
	}

	public Integer getSubId() {
		return this.subId;
	}

	public void setSubId(Integer subId) {
		this.subId = subId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof VTypeId))
			return false;
		VTypeId castOther = (VTypeId) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getSuperType() == castOther.getSuperType()) || (this
						.getSuperType() != null
						&& castOther.getSuperType() != null && this
						.getSuperType().equals(castOther.getSuperType())))
				&& ((this.getSubType() == castOther.getSubType()) || (this
						.getSubType() != null
						&& castOther.getSubType() != null && this.getSubType()
						.equals(castOther.getSubType())))
				&& ((this.getSubId() == castOther.getSubId()) || (this
						.getSubId() != null
						&& castOther.getSubId() != null && this.getSubId()
						.equals(castOther.getSubId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37 * result
				+ (getSuperType() == null ? 0 : this.getSuperType().hashCode());
		result = 37 * result
				+ (getSubType() == null ? 0 : this.getSubType().hashCode());
		result = 37 * result
				+ (getSubId() == null ? 0 : this.getSubId().hashCode());
		return result;
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -