JAVA Web Basic message book comprehensive exercises

Source: Internet
Author: User

Message This class

Package Com.hanqi.model;import java.util.date;//Message This object public class message {private Integer id;//message ID private String  content;//message Content Private Date createtime;//message time private String username;//message user name public message (Integer ID, String        Content, Date Createtime, String username) {super ();        This.id = ID;        this.content = content;        This.createtime = Createtime;    This.username = Username;    } public Message () {super ();    } public Integer GetId () {return id;    } public void SetId (Integer id) {this.id = ID;    } public String GetContent () {return content;    The public void SetContent (String content) {this.content = content;    Public Date Getcreatetime () {return createtime;    } public void Setcreatetime (Date createtime) {this.createtime = Createtime;    } public String GetUserName () {return username; } public void Setusername (String username) {ThiS.username = Username; }    }

  User Classes

Package Com.hanqi.model;import java.util.date;//User Object public class users {private Integer ID;//user Idprivate String username;//User name private string password;//user password private string realname;//user real name private Date createtime;//user registration Time private The integer mark;//user effectively marks the public users (integer ID, string username, string password, string realname, Date createtime, Integer Mark) {super (); this.id = Id;this.username = Username;this.password = Password;this.realname = Realname;this.createtime = Createtime;this.mark = Mark;} Public Users () {super ();} Public Integer GetId () {return ID;} public void SetId (Integer id) {this.id = ID;} Public String GetUserName () {return username;} public void Setusername (String username) {this.username = username;} Public String GetPassword () {return password;} public void SetPassword (String password) {this.password = password;} Public String Getrealname () {return realname;} public void Setrealname (String realname) {this.realname = Realname;} Public Date Getcreatetime () {return createtime;} PublIC void Setcreatetime (Date createtime) {this.createtime = Createtime;} Public Integer Getmark () {return mark;} public void Setmark (Integer mark) {This.mark = Mark;} @Overridepublic String toString () {return username;}}

JAVA Web Basic message book comprehensive exercises

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.