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

📄 comment.java

📁 乐言新闻评论系统 1.0 是一个基于J2EE(Spring+Hibernate)环境下开发的新闻评论坛系统。请自行下载Hibernate 3.0
💻 JAVA
字号:
/** 
* Copyright &#169? 2006 广州乐言信息科技有限公司. 
* All right reserved. 
* Created at 2006-4-10
*/ 

package com.hiany.comment.domain;

/**
 * 一条评论
 * @hibernate.class
 *  table="comment"
 */
public class Comment {
	private long id;
	private long newsId;
	private String username;
	private String nickname;
	private boolean anonymous;
	private String ip;
	private long commentTime;
	private String comment;
	
	public static final String TOP_FILENAME = "top_x.html";
	public static final String ALL_FILENAME = "all_x.html";
	
	/**
	 * @return the anonymous
	 * @hibernate.property
	 */
	public boolean isAnonymous() {
		return anonymous;
	}
	/**
	 * @param anonymous the anonymous to set
	 */
	public void setAnonymous(boolean anonymous) {
		this.anonymous = anonymous;
	}
	/**
	 * @return the comment
	 * @hibernate.property
	 */
	public String getComment() {
		return comment;
	}
	/**
	 * @param comment the comment to set
	 */
	public void setComment(String comment) {
		this.comment = comment;
	}
	/**
	 * @return the commentTime
	 * @hibernate.property
	 */
	public long getCommentTime() {
		return commentTime;
	}
	/**
	 * @param commentTime the commentTime to set
	 */
	public void setCommentTime(long commentTime) {
		this.commentTime = commentTime;
	}
	/**
	 * @return the id
	 * @hibernate.id
	 *  generator-class="native"
	 */
	public long getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}
	/**
	 * @return the ip
	 * @hibernate.property
	 */
	public String getIp() {
		return ip;
	}
	/**
	 * @param ip the ip to set
	 */
	public void setIp(String ip) {
		this.ip = ip;
	}
	/**
	 * @return the nickname
	 * @hibernate.property
	 */
	public String getNickname() {
		return nickname;
	}
	/**
	 * @param nickname the nickname to set
	 */
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	/**
	 * @return the username
	 * @hibernate.property
	 */
	public String getUsername() {
		return username;
	}
	/**
	 * @param username the username to set
	 */
	public void setUsername(String username) {
		this.username = username;
	}
	/**
	 * @return the newsId
	 * @hibernate.property
	 */
	public long getNewsId() {
		return newsId;
	}
	/**
	 * @param newsId the newsId to set
	 */
	public void setNewsId(long newsId) {
		this.newsId = newsId;
	}
}

⌨️ 快捷键说明

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