01: package org.emforge.comment;
02:
03: import java.util.Date;
04:
05: /**
06: * Comment interface implementation with plain java object to store it in database and
07: * use on jsf pages
08: * @author imusihin
09: */
10: public class CommentDO {
11:
12: protected Long id;
13:
14: protected String actorId;
15:
16: protected Date time;
17:
18: protected String message;
19:
20: protected String pageName;
21:
22: public CommentDO() {
23: }
24:
25: public CommentDO(String message) {
26: this .message = message;
27: }
28:
29: public Long getId() {
30: return id;
31: }
32:
33: public void setId(Long id) {
34: this .id = id;
35: }
36:
37: public String getActorId() {
38: return actorId;
39: }
40:
41: public void setActorId(String actorId) {
42: this .actorId = actorId;
43: }
44:
45: public Date getTime() {
46: return time;
47: }
48:
49: public void setTime(Date time) {
50: this .time = time;
51: }
52:
53: public String getMessage() {
54: return message;
55: }
56:
57: public void setMessage(String message) {
58: this .message = message;
59: }
60:
61: public String getPageName() {
62: return pageName;
63: }
64:
65: public void setPageName(String pageName) {
66: this.pageName = pageName;
67: }
68: }
|