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

📄 forumnewtopicid.java

📁 struts+hibernate BBS mysql数据库 功能基本齐全
💻 JAVA
字号:
package com.elan.forum.model.view;

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

public class ForumnewtopicId implements java.io.Serializable {

	// Fields

	private Integer id;
	private String mdname;
	private Integer fpId;
	private String fpname;
	private String fpmasterName;
	private String fpDescription;
	private Integer faId;
	private String faTitle;
	private String faAuthor;
	private String faClick;
	private Integer faReply;

	// Constructors

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

	/** minimal constructor */
	public ForumnewtopicId(Integer id, Integer fpId, Integer faId) {
		this.id = id;
		this.fpId = fpId;
		this.faId = faId;
	}

	/** full constructor */
	public ForumnewtopicId(Integer id, String mdname, Integer fpId,
			String fpname, String fpmasterName, Integer faId, String faTitle,
			String faAuthor, String faClick, Integer faReply) {
		this.id = id;
		this.mdname = mdname;
		this.fpId = fpId;
		this.fpname = fpname;
		this.fpmasterName = fpmasterName;
		this.faId = faId;
		this.faTitle = faTitle;
		this.faAuthor = faAuthor;
		this.faClick = faClick;
		this.faReply = faReply;
	}

	// Property accessors

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

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

	public String getMdname() {
		return this.mdname;
	}

	public void setMdname(String mdname) {
		this.mdname = mdname;
	}

	public Integer getFpId() {
		return this.fpId;
	}

	public void setFpId(Integer fpId) {
		this.fpId = fpId;
	}

	public String getFpname() {
		return this.fpname;
	}

	public void setFpname(String fpname) {
		this.fpname = fpname;
	}

	public String getFpmasterName() {
		return this.fpmasterName;
	}

	public void setFpmasterName(String fpmasterName) {
		this.fpmasterName = fpmasterName;
	}

	public Integer getFaId() {
		return this.faId;
	}

	public void setFaId(Integer faId) {
		this.faId = faId;
	}

	public String getFaTitle() {
		return this.faTitle;
	}

	public void setFaTitle(String faTitle) {
		this.faTitle = faTitle;
	}

	public String getFaAuthor() {
		return this.faAuthor;
	}

	public void setFaAuthor(String faAuthor) {
		this.faAuthor = faAuthor;
	}

	public String getFaClick() {
		return this.faClick;
	}

	public void setFaClick(String faClick) {
		this.faClick = faClick;
	}

	public Integer getFaReply() {
		return this.faReply;
	}

	public void setFaReply(Integer faReply) {
		this.faReply = faReply;
	}

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

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getMdname() == castOther.getMdname()) || (this
						.getMdname() != null
						&& castOther.getMdname() != null && this.getMdname()
						.equals(castOther.getMdname())))
				&& ((this.getFpId() == castOther.getFpId()) || (this.getFpId() != null
						&& castOther.getFpId() != null && this.getFpId()
						.equals(castOther.getFpId())))
				&& ((this.getFpname() == castOther.getFpname()) || (this
						.getFpname() != null
						&& castOther.getFpname() != null && this.getFpname()
						.equals(castOther.getFpname())))
				&& ((this.getFpmasterName() == castOther.getFpmasterName()) || (this
						.getFpmasterName() != null
						&& castOther.getFpmasterName() != null && this
						.getFpmasterName().equals(castOther.getFpmasterName())))
				&& ((this.getFaId() == castOther.getFaId()) || (this.getFaId() != null
						&& castOther.getFaId() != null && this.getFaId()
						.equals(castOther.getFaId())))
				&& ((this.getFaTitle() == castOther.getFaTitle()) || (this
						.getFaTitle() != null
						&& castOther.getFaTitle() != null && this.getFaTitle()
						.equals(castOther.getFaTitle())))
				&& ((this.getFaAuthor() == castOther.getFaAuthor()) || (this
						.getFaAuthor() != null
						&& castOther.getFaAuthor() != null && this
						.getFaAuthor().equals(castOther.getFaAuthor())))
				&& ((this.getFaClick() == castOther.getFaClick()) || (this
						.getFaClick() != null
						&& castOther.getFaClick() != null && this.getFaClick()
						.equals(castOther.getFaClick())))
				&& ((this.getFpDescription() == castOther.getFpDescription()) || (this
						.getFpDescription() != null
						&& castOther.getFaReply() != null && this.getFaReply()
						.equals(castOther.getFaReply())))
				&& ((this.getFaReply() == castOther.getFaReply()) || (this
						.getFaReply() != null
						&& castOther.getFaReply() != null && this.getFaReply()
						.equals(castOther.getFaReply())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37 * result
				+ (getMdname() == null ? 0 : this.getMdname().hashCode());
		result = 37 * result
				+ (getFpId() == null ? 0 : this.getFpId().hashCode());
		result = 37 * result
				+ (getFpname() == null ? 0 : this.getFpname().hashCode());
		result = 37
				* result
				+ (getFpmasterName() == null ? 0 : this.getFpmasterName()
						.hashCode());
		result = 37
				* result
				+ (getFpDescription() == null ? 0 : this.getFpDescription()
						.hashCode());
		result = 37 * result
				+ (getFaId() == null ? 0 : this.getFaId().hashCode());
		result = 37 * result
				+ (getFaTitle() == null ? 0 : this.getFaTitle().hashCode());
		result = 37 * result
				+ (getFaAuthor() == null ? 0 : this.getFaAuthor().hashCode());
		result = 37 * result
				+ (getFaClick() == null ? 0 : this.getFaClick().hashCode());
		result = 37 * result
				+ (getFaReply() == null ? 0 : this.getFaReply().hashCode());
		return result;
	}

	public String getFpDescription() {
		return fpDescription;
	}

	public void setFpDescription(String fpDescription) {
		this.fpDescription = fpDescription;
	}

}

⌨️ 快捷键说明

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