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

📄 note.java

📁 STRUTS数据库项目开发宝典
💻 JAVA
字号:
package com.relationinfo.model;

import java.io.Serializable;

import org.apache.commons.lang.builder.ToStringStyle;

/**
 * This class is used to represent available roles in the database.
 * </p>
 * 
 * <p>
 * <a href="Note.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="Note"
 */
public class Note extends BaseObject implements Serializable {
	private static final long serialVersionUID = 3690197650654049848L;

	private String notecode;

	private String notecontent;

	private String pubdate;

	private User user;

	public Note() {
	}

	public Note(String notecode, String notecontent, String pubdate, User user) {
		this.notecode = notecode;
		this.notecontent = notecontent;
		this.pubdate = pubdate;
		this.user = user;

	}

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

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

	public String getPubdate() {
		return this.pubdate;
	}


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

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

		return user;
	}

	public void setNotecode(String notecode) {
		this.notecode = notecode;
	}

	public String toString() {
		// TODO Auto-generated method stub
		return null;
	}

	public boolean equals(Object o) {
		// TODO Auto-generated method stub
		return false;
	}

	public int hashCode() {
		// TODO Auto-generated method stub
		return 0;
	}

	

}

⌨️ 快捷键说明

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