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

📄 lm.java

📁 Struts数据库开发中的一个案例
💻 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="Lm.java.html"><i>www.relationinfo.com</i></a>
 * </p>
 * 
 * @author Jeff
 * 
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class table="Lm"
 */
public class Lm extends BaseObject implements Serializable {
	private static final long serialVersionUID = 3832226162173359411L;

	protected String lmbm;

	protected String lmmc;

	/**
	 * Returns the lmbm.
	 * 
	 * @return String
	 * 
	 * @struts.validator type="required"
	 * @hibernate.id column="lmbm" length="20" generator-class="assigned"
	 *               unsaved-value="version"
	 */
	public String getLmbm() {
		return lmbm;
	}

	/**
	 * Returns the lmmc.
	 * 
	 * @return String
	 * 
	 * @struts.validator type="required"
	 * @hibernate.property column="lmmc" not-null="false"
	 */
	public String getLmmc() {
		return lmmc;
	}

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

		Lm rhs = (Lm) object;

		return new EqualsBuilder().append(this.lmmc, rhs.lmmc).append(
				this.lmbm, rhs.lmbm).isEquals();
	}

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

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

	public void setLmbm(String lmbm) {
		this.lmbm = lmbm;
	}

	public void setLmmc(String lmmc) {
		this.lmmc = lmmc;
	}

}

⌨️ 快捷键说明

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