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

📄 zhaopin.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;

/**
 * This class is used to represent available roles in the database.
 * </p>
 * 
 * <p>
 * <a href="Zhaopin.java.html"><i>www.relationinfo.com</i></a>
 * </p>
 * 
 * @author caoguangxin www.relationinfo.com Version by
 *         Dan Kibler dan@getrolling.com
 * 
 * @struts.form extends="BaseForm"
 * @hibernate.class table="Zhaopin"
 */
public class Zhaopin extends BaseObject implements Serializable {
	private static final long serialVersionUID = 3690197650654049848L;

	private String zpcode;

	private String zpzw;

	private String zpcontent;

	private String zpdate;

	private User user;

	public Zhaopin() {
	}

	public Zhaopin(String zpcode, String zpzw, String zpcontent, String zpdate,
			User user) {
		this.zpcode = zpcode;
		this.zpzw = zpzw;
		this.zpcontent = zpcontent;
		this.zpdate = zpdate;
		this.user = user;

	}

	// ~ Methods
	// ================================================================

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

	public String getZpcontent() {
		return this.zpcontent;
	}

	public String getZpzw() {
		return this.zpzw;
	}

	/**
	 * Returns the user.
	 * 
	 * @return user
	 * 
	 * @hibernate.many-to-one column="userid" cascade="none"
	 */
	public User getUser() {

		return user;
	}

	public void setZpcode(String zpcode) {
		this.zpcode = zpcode;
	}

	public String getZpdate() {
		return this.zpdate;
	}

	/**
	 * Generated using Coaddressonclipse (zpcontent://coaddressonclipse.sf.net)
	 */
	public boolean equals(Object object) {
		if (!(object instanceof Zhaopin)) {
			return false;
		}
		Zhaopin rhs = (Zhaopin) object;
		return new EqualsBuilder().append(this.zpzw, rhs.zpzw).append(
				this.zpcode, rhs.zpcode).isEquals();
	}

	/**
	 * Generated using Coaddressonclipse (zpcontent://coaddressonclipse.sf.net)
	 */
	public int hashCode() {
		return new HashCodeBuilder(1156335803, 987569255).append(this.zpzw)
				.append(this.zpcode).append(this.zpcontent).append(this.user)
				.toHashCode();
	}

	/**
	 * Generated using Coaddressonclipse (zpcontent://coaddressonclipse.sf.net)
	 */
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
				.append("zpcode", this.zpcode).append("zpzw", this.zpzw)
				.append("zpcontent", this.zpcontent).append("zpdate",
						this.zpdate).append("user", this.user).toString();
	}

}

⌨️ 快捷键说明

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