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

📄 abstractloginuserid.java

📁 用hibernata连接数据库的java聊天室 有服务器端可踢人
💻 JAVA
字号:
package hibernatedao;

/**
 * AbstractLoginuserId generated by MyEclipse Persistence Tools
 */

public abstract class AbstractLoginuserId implements java.io.Serializable {

	// Fields

	private String usernickname;

	private String password;

	// Constructors

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

	/** full constructor */
	public AbstractLoginuserId(String usernickname, String password) {
		this.usernickname = usernickname;
		this.password = password;
	}

	// Property accessors

	public String getUsernickname() {
		return this.usernickname;
	}

	public void setUsernickname(String usernickname) {
		this.usernickname = usernickname;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

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

		return ((this.getUsernickname() == castOther.getUsernickname()) || (this
				.getUsernickname() != null
				&& castOther.getUsernickname() != null && this
				.getUsernickname().equals(castOther.getUsernickname())))
				&& ((this.getPassword() == castOther.getPassword()) || (this
						.getPassword() != null
						&& castOther.getPassword() != null && this
						.getPassword().equals(castOther.getPassword())));
	}

	public int hashCode() {
		int result = 17;

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

}

⌨️ 快捷键说明

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