syfxb1zzssytjid.java

来自「struts hibernate spring」· Java 代码 · 共 69 行

JAVA
69
字号
package com.syfxapp.pojo;

/**
 * SyfxB1ZzsSytjId entity. @author MyEclipse Persistence Tools
 */

public class SyfxB1ZzsSytjId implements java.io.Serializable {

	// Fields

	private Long xh;
	private String ny;

	// Constructors

	/** default constructor */
	public SyfxB1ZzsSytjId() {
	}

	/** full constructor */
	public SyfxB1ZzsSytjId(Long xh, String ny) {
		this.xh = xh;
		this.ny = ny;
	}

	// Property accessors

	public Long getXh() {
		return this.xh;
	}

	public void setXh(Long xh) {
		this.xh = xh;
	}

	public String getNy() {
		return this.ny;
	}

	public void setNy(String ny) {
		this.ny = ny;
	}

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

		return ((this.getXh() == castOther.getXh()) || (this.getXh() != null
				&& castOther.getXh() != null && this.getXh().equals(
				castOther.getXh())))
				&& ((this.getNy() == castOther.getNy()) || (this.getNy() != null
						&& castOther.getNy() != null && this.getNy().equals(
						castOther.getNy())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getXh() == null ? 0 : this.getXh().hashCode());
		result = 37 * result + (getNy() == null ? 0 : this.getNy().hashCode());
		return result;
	}

}

⌨️ 快捷键说明

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