news.java

来自「使用WEBWORK,SPRING,HIBERNATE编写的简单的添加」· Java 代码 · 共 64 行

JAVA
64
字号
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 + =
减小字号Ctrl + -
显示快捷键?