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


package com.news.bean; 
 
 
 
/** 
 * Gusetbook generated by MyEclipse - Hibernate Tools 
 */ 
 
public class Guestbook  implements java.io.Serializable { 
 
 
    // Fields     
 
     private String id; 
     private String name; 
     private String newid; 
     private String guestdate; 
     private String date2; 
     private String guestcontent; 
     private String image; 
 
 
    // Constructors 
 
    /** default constructor */ 
    public Guestbook() { 
    } 
 
     
    /** full constructor */ 
    public Guestbook(String id, String name, String newid, String guestdate, String date2, String guestcontent, String image) { 
        this.id = id; 
        this.name = name; 
        this.newid = newid; 
        this.guestdate = guestdate; 
        this.date2 = date2; 
        this.guestcontent = guestcontent; 
        this.image = image; 
    } 
 
    
    // Property accessors 
 
    public String getId() { 
        return this.id; 
    } 
     
    public void setId(String id) { 
        this.id = id; 
    } 
 
    public String getName() { 
        return this.name; 
    } 
     
    public void setName(String name) { 
        this.name = name; 
    } 
 
    public String getNewid() { 
        return this.newid; 
    } 
     
    public void setNewid(String newid) { 
        this.newid = newid; 
    } 
 
    public String getGuestdate() { 
        return this.guestdate; 
    } 
     
    public void setGuestdate(String guestdate) { 
        this.guestdate = guestdate; 
    } 
 
    public String getDate2() { 
        return this.date2; 
    } 
     
    public void setDate2(String date2) { 
        this.date2 = date2; 
    } 
 
    public String getGuestcontent() { 
        return this.guestcontent; 
    } 
     
    public void setGuestcontent(String guestcontent) { 
        this.guestcontent = guestcontent; 
    } 
 
    public String getImage() { 
        return this.image; 
    } 
     
    public void setImage(String image) { 
        this.image = image; 
    } 
    
 
 
 
 
 
 
 
 
}