--- miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/message/MessageBean.java 2012/05/15 12:26:52 1802 +++ miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/message/MessageBean.java 2012/05/28 14:32:53 1803 @@ -12,13 +12,14 @@ @Id @GeneratedValue int id; - + String fromplayer; String player; String message; boolean isread; Timestamp createtime; + Timestamp readtime; public int getId() { return id; @@ -28,6 +29,14 @@ this.id = id; } + public String getFromplayer() { + return fromplayer; + } + + public void setFromplayer(String from) { + this.fromplayer = from; + } + public String getPlayer() { return player; } @@ -59,9 +68,22 @@ public void setCreatetime(Timestamp createtime) { this.createtime = createtime; } - + public void setCreatetimeNow() { this.createtime = new Timestamp( System.currentTimeMillis() ) ; } + + public Timestamp getReadtime() { + return readtime; + } + + public void setReadtime(Timestamp readtime) { + this.readtime = readtime; + } + +/* public void setReadtimeNow() { + this.readtime = new Timestamp( System.currentTimeMillis() ) ; + }*/ + }