www.pudn.com > j2EEnews_struts_hibernate_spring.rar > News.java


package com.news.bean; 
 
 
 
/** 
 * News generated by MyEclipse - Hibernate Tools 
 */ 
 
public class News  implements java.io.Serializable { 
 
 
    // Fields     
 
     private String id; 
     private String typeid; 
     private String newtitle; 
     private String newauthor; 
     private String newfrom; 
     private String newdate; 
     private String newcontent; 
     private String count; 
     private String date2; 
 
 
    // Constructors 
 
    /** default constructor */ 
    public News() { 
    } 
 
	/** minimal constructor */ 
    public News(String id, String newtitle, String newauthor, String newfrom, String newdate, String newcontent, String date2) { 
        this.id = id; 
        this.newtitle = newtitle; 
        this.newauthor = newauthor; 
        this.newfrom = newfrom; 
        this.newdate = newdate; 
        this.newcontent = newcontent; 
        this.date2 = date2; 
    } 
     
    /** full constructor */ 
    public News(String id, String typeid, String newtitle, String newauthor, String newfrom, String newdate, String newcontent, String count, String date2) { 
        this.id = id; 
        this.typeid = typeid; 
        this.newtitle = newtitle; 
        this.newauthor = newauthor; 
        this.newfrom = newfrom; 
        this.newdate = newdate; 
        this.newcontent = newcontent; 
        this.count = count; 
        this.date2 = date2; 
    } 
 
    
    // Property accessors 
 
    public String getId() { 
        return this.id; 
    } 
     
    public void setId(String id) { 
        this.id = id; 
    } 
 
    public String getTypeid() { 
        return this.typeid; 
    } 
     
    public void setTypeid(String typeid) { 
        this.typeid = typeid; 
    } 
 
    public String getNewtitle() { 
        return this.newtitle; 
    } 
     
    public void setNewtitle(String newtitle) { 
        this.newtitle = newtitle; 
    } 
 
    public String getNewauthor() { 
        return this.newauthor; 
    } 
     
    public void setNewauthor(String newauthor) { 
        this.newauthor = newauthor; 
    } 
 
    public String getNewfrom() { 
        return this.newfrom; 
    } 
     
    public void setNewfrom(String newfrom) { 
        this.newfrom = newfrom; 
    } 
 
    public String getNewdate() { 
        return this.newdate; 
    } 
     
    public void setNewdate(String newdate) { 
        this.newdate = newdate; 
    } 
 
    public String getNewcontent() { 
        return this.newcontent; 
    } 
     
    public void setNewcontent(String newcontent) { 
        this.newcontent = newcontent; 
    } 
 
    public String getCount() { 
        return this.count; 
    } 
     
    public void setCount(String count) { 
        this.count = count; 
    } 
 
    public String getDate2() { 
        return this.date2; 
    } 
     
    public void setDate2(String date2) { 
        this.date2 = date2; 
    } 
    
 
 
 
 
 
 
 
 
}