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

📄 mb.java

📁 spring+hibernate+struts code
💻 JAVA
字号:
package com.relationinfo.model;

import java.io.Serializable;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * User class
 * 
 * This class is used to generate the Struts Validator Form as well as the
 * Hibernate mapping file.
 * 
 * <p>
 * <a href="Mb.java.html"><i>www.relationinfo.com</i></a>
 * </p>
 * 
 * @author Jef
 * 
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class table="mb"
 */
public class Mb extends BaseObject implements Serializable {
	private static final long serialVersionUID = 3832626162173359411L;

	protected String mbbm;

	protected String mbmc;

	protected String mbnr;

	/**
	 * Returns the mbbm.
	 * 
	 * @return String
	 * 
	 * @struts.validator type="required"
	 * @hibernate.id column="mbbm" length="32" generator-class="assigned"
	 */
	public String getMbbm() {
		return mbbm;
	}

	/**
	 * Returns the mbmc.
	 * 
	 * @return String
	 * 
	 * @hibernate.property column="mbmc"
	 */
	public String getMbmc() {
		return mbmc;
	}

	/**
	 * Returns the mbnr.
	 * 
	 * @return String
	 * 
	 * @hibernate.property column="mbnr"
	 */
	public String getMbnr() {
		return mbnr;
	}

	/**
	 * Sets the mbbm.
	 * 
	 * @param mbbm
	 *            The mbbm to set
	 */
	public void setMbbm(String mbbm) {
		this.mbbm = mbbm;
	}

	/**
	 * Sets the yhbm.
	 * 
	 * @param yhbm
	 *            The yhbm to set
	 */
	public void setMbmc(String yhbm) {
		this.mbmc = yhbm;
	}

	/**
	 * Sets the lmbm.
	 * 
	 * @param lmbm
	 *            The lmbm to set
	 */
	public void setMbnr(String mbnr) {
		this.mbnr = mbnr;
	}

	/**
	 * Generated using Commonclipse (http://commonclipse.sf.net)
	 */
	public boolean equals(Object object) {
		if (!(object instanceof Mb)) {
			return false;
		}

		Mb rhs = (Mb) object;

		return new EqualsBuilder().append(this.mbbm, rhs.mbbm).append(
				this.mbmc, rhs.mbmc).append(this.mbnr, rhs.mbnr).isEquals();
	}

	/**
	 * Generated using Commonclipse (http://commonclipse.sf.net)
	 */
	public int hashCode() {
		return new HashCodeBuilder(-2022315247, 1437659757).append(this.mbbm)
				.append(this.mbmc).append(this.mbnr).toHashCode();
	}

	/**
	 * Generated using Commonclipse (http://commonclipse.sf.net)
	 */
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
				.append("mbnr", this.mbnr).append("mbbm", this.mbbm).append(
						"mbmc", this.mbmc).toString();
	}

}

⌨️ 快捷键说明

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