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

📄 marryid.java

📁 网上结婚登记系统 Java语言编写 可直接运行
💻 JAVA
字号:
package task.domain;

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

public class MarryId implements java.io.Serializable {

	// Fields

	private String marryId;
	private String name;

	// Constructors

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

	/** full constructor */
	public MarryId(String marryId, String name) {
		this.marryId = marryId;
		this.name = name;
	}

	// Property accessors

	public String getMarryId() {
		return this.marryId;
	}

	public void setMarryId(String marryId) {
		this.marryId = marryId;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

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

		return ((this.getMarryId() == castOther.getMarryId()) || (this
				.getMarryId() != null
				&& castOther.getMarryId() != null && this.getMarryId().equals(
				castOther.getMarryId())))
				&& ((this.getName() == castOther.getName()) || (this.getName() != null
						&& castOther.getName() != null && this.getName()
						.equals(castOther.getName())));
	}

	public int hashCode() {
		int result = 17;

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

}

⌨️ 快捷键说明

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