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

📄 news.java

📁 功能完善的java开发框架
💻 JAVA
字号:
package news.model;

import com.jdon.controller.model.Model;
import java.util.Collection;
import java.util.ArrayList;

public class News extends Model {
  private String newsId;
  private String subject;
  private String content;


  private Collection opinions;
  private NewsType newsType;
  private User user;

  public void setNewsId(String newsId) {
    this.newsId = newsId;
  }

  public void setSubject(String subject) {
    this.subject = subject;
  }

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

  public void setOpinions(Collection opinions) {
    this.opinions = opinions;
  }

  public void setNewsType(NewsType newsType) {
    this.newsType = newsType;
  }


  public void setUser(User user) {
    this.user = user;
  }

  public String getNewsId() {
    return newsId;
  }

  public String getSubject() {
    return subject;
  }

  public String getContent() {
    return content;
  }

  public Collection getOpinions() {
    return opinions;
  }

  public NewsType getNewsType() {
    return newsType;
  }


  public User getUser() {
    return user;
  }

}

⌨️ 快捷键说明

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