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

📄 news.java

📁 Java项目 新闻管理系统 jsp+struts+hibernate 开发:eclipse+oracle9i+tomcat 高质量代码 导入数据即可用
💻 JAVA
字号:
package com.xdf.news.bean;

import java.util.HashSet;
import java.util.Set;


/**
 * News generated by MyEclipse - Hibernate Tools
 */

public class News  implements java.io.Serializable {


    // Fields    

     private Long newsid;
     private Ntype ntype;
     private String title;
     private String author;
     private String pdate;
     private String keyword;
     private Long times;
     private String content;
     private Set replies = new HashSet(0);


    // Constructors

    /** default constructor */
    public News() {
    }

	/** minimal constructor */
    public News(Ntype ntype, String title, String pdate, String keyword, Long times, String content) {
        this.ntype = ntype;
        this.title = title;
        this.pdate = pdate;
        this.keyword = keyword;
        this.times = times;
        this.content = content;
    }
    
    /** full constructor */
    public News(Ntype ntype, String title, String author, String pdate, String keyword, Long times, String content, Set replies) {
        this.ntype = ntype;
        this.title = title;
        this.author = author;
        this.pdate = pdate;
        this.keyword = keyword;
        this.times = times;
        this.content = content;
        this.replies = replies;
    }

   
    // Property accessors

    public Long getNewsid() {
        return this.newsid;
    }
    
    public void setNewsid(Long newsid) {
        this.newsid = newsid;
    }

    public Ntype getNtype() {
        return this.ntype;
    }
    
    public void setNtype(Ntype ntype) {
        this.ntype = ntype;
    }

    public String getTitle() {
        return this.title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return this.author;
    }
    
    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPdate() {
        return this.pdate;
    }
    
    public void setPdate(String pdate) {
        this.pdate = pdate;
    }

    public String getKeyword() {
        return this.keyword;
    }
    
    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public Long getTimes() {
        return this.times;
    }
    
    public void setTimes(Long times) {
        this.times = times;
    }

    public String getContent() {
        return this.content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }

    public Set getReplies() {
        return this.replies;
    }
    
    public void setReplies(Set replies) {
        this.replies = replies;
    }
   








}

⌨️ 快捷键说明

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