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

📄 news.java

📁 使用WEBWORK,SPRING,HIBERNATE编写的简单的添加
💻 JAVA
字号:
package com.tech.model;

/**
 * insert:insert into  news(id,title,content) values(?,?,?)
 * update:update news set   title=?,content=?
 * 
 param.add(row.get("title"));//title 
 param.add(row.get("content"));//content 
 * 新闻; InnoDB free: 0 kB 
 * @作者 徐建协
 * @日期 2009-02-11
 */
public class News implements java.io.Serializable {

    private java.lang.Long id;//
    private java.lang.String title;//
    private java.lang.String content;//

	public News() {//构造函数
	}
   /*****************
    *  
    * 
    */     
  public java.lang.Long getId() {
    return this.id;
  }
   /*****************
    *  
    * 
    */    
  public void setId(java.lang.Long id) {
    this.id = id;
  }
   /*****************
    *  
    * 
    */     
	public java.lang.String getTitle() {
		return this.title;
	}
   /*****************
    *  
    * 
    */  	
	public void setTitle(java.lang.String title) {
		this.title = title;
	}
   /*****************
    *  
    * 
    */     
	public java.lang.String getContent() {
		return this.content;
	}
   /*****************
    *  
    * 
    */  	
	public void setContent(java.lang.String content) {
		this.content = content;
	}

}

⌨️ 快捷键说明

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