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

📄 royschedid.java

📁 带分页显示的简单例子 Hibernate
💻 JAVA
字号:
package fmq.model.bo;

/**
 * RoyschedId generated by MyEclipse Persistence Tools
 */

public class RoyschedId implements java.io.Serializable {

	// Fields

	private Titles titles;

	private Integer lorange;

	private Integer hirange;

	private Integer royalty;

	// Constructors

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

	/** minimal constructor */
	public RoyschedId(Titles titles) {
		this.titles = titles;
	}

	/** full constructor */
	public RoyschedId(Titles titles, Integer lorange, Integer hirange,
			Integer royalty) {
		this.titles = titles;
		this.lorange = lorange;
		this.hirange = hirange;
		this.royalty = royalty;
	}

	// Property accessors

	public Titles getTitles() {
		return this.titles;
	}

	public void setTitles(Titles titles) {
		this.titles = titles;
	}

	public Integer getLorange() {
		return this.lorange;
	}

	public void setLorange(Integer lorange) {
		this.lorange = lorange;
	}

	public Integer getHirange() {
		return this.hirange;
	}

	public void setHirange(Integer hirange) {
		this.hirange = hirange;
	}

	public Integer getRoyalty() {
		return this.royalty;
	}

	public void setRoyalty(Integer royalty) {
		this.royalty = royalty;
	}

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

		return ((this.getTitles() == castOther.getTitles()) || (this
				.getTitles() != null
				&& castOther.getTitles() != null && this.getTitles().equals(
				castOther.getTitles())))
				&& ((this.getLorange() == castOther.getLorange()) || (this
						.getLorange() != null
						&& castOther.getLorange() != null && this.getLorange()
						.equals(castOther.getLorange())))
				&& ((this.getHirange() == castOther.getHirange()) || (this
						.getHirange() != null
						&& castOther.getHirange() != null && this.getHirange()
						.equals(castOther.getHirange())))
				&& ((this.getRoyalty() == castOther.getRoyalty()) || (this
						.getRoyalty() != null
						&& castOther.getRoyalty() != null && this.getRoyalty()
						.equals(castOther.getRoyalty())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getTitles() == null ? 0 : this.getTitles().hashCode());
		result = 37 * result
				+ (getLorange() == null ? 0 : this.getLorange().hashCode());
		result = 37 * result
				+ (getHirange() == null ? 0 : this.getHirange().hashCode());
		result = 37 * result
				+ (getRoyalty() == null ? 0 : this.getRoyalty().hashCode());
		return result;
	}

}

⌨️ 快捷键说明

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