Subversion Repositories WebE

Rev

Rev 21 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21 Rev 33
Line 23... Line 23...
23
public class History implements java.io.Serializable {
23
public class History implements java.io.Serializable {
24
24
25
        private Integer id;
25
        private Integer id;
26
        private User user;
26
        private User user;
27
        private ActionType actionType;
27
        private ActionType actionType;
28
        private Object object;
28
        private ObjectEntity object;
29
        private String value;
29
        private String value;
30
        private String comment;
30
        private String comment;
31
        private Date date;
31
        private Date date;
32
32
33
        public History() {
33
        public History() {
34
        }
34
        }
35
35
36
        public History(User user, ActionType actionType, Object object, Date date) {
36
        public History(User user, ActionType actionType, ObjectEntity object, Date date) {
37
                this.user = user;
37
                this.user = user;
38
                this.actionType = actionType;
38
                this.actionType = actionType;
39
                this.object = object;
39
                this.object = object;
40
                this.date = date;
40
                this.date = date;
41
        }
41
        }
42
42
43
        public History(User user, ActionType actionType, Object object,
43
        public History(User user, ActionType actionType, ObjectEntity object,
44
                        String value, String comment, Date date) {
44
                        String value, String comment, Date date) {
45
                this.user = user;
45
                this.user = user;
46
                this.actionType = actionType;
46
                this.actionType = actionType;
47
                this.object = object;
47
                this.object = object;
48
                this.value = value;
48
                this.value = value;
Line 81... Line 81...
81
                this.actionType = actionType;
81
                this.actionType = actionType;
82
        }
82
        }
83
83
84
        @ManyToOne(fetch = FetchType.LAZY)
84
        @ManyToOne(fetch = FetchType.LAZY)
85
        @JoinColumn(name = "objects_id", nullable = false)
85
        @JoinColumn(name = "objects_id", nullable = false)
86
        public Object getObject() {
86
        public ObjectEntity getObject() {
87
                return this.object;
87
                return this.object;
88
        }
88
        }
89
89
90
        public void setObject(Object object) {
90
        public void setObject(ObjectEntity object) {
91
                this.object = object;
91
                this.object = object;
92
        }
92
        }
93
93
94
        @Column(name = "value", length = 45)
94
        @Column(name = "value", length = 45)
95
        public String getValue() {
95
        public String getValue() {