forked from Infosys/Discourse-Java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMessageBus.java
More file actions
113 lines (89 loc) · 2.37 KB
/
Copy pathMessageBus.java
File metadata and controls
113 lines (89 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/*
* Copyright 2021 Infosys Ltd.
* Use of this source code is governed by GNU General Public License version 2
* that can be found in the LICENSE file or at
* https://opensource.org/licenses/GPL-2.0
*/
package com.infy.domain;
import javax.persistence.*;
import java.io.Serializable;
/**
* A MessageBus.
*/
@Entity
@Table(name = "message_bus")
public class MessageBus extends AbstractAuditingEntity implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequenceGenerator")
@SequenceGenerator(name = "sequenceGenerator")
private Long id;
@Column(name = "name")
private String name;
@Column(name = "context")
private String context;
@Column(name = "data")
private String data;
// jhipster-needle-entity-add-field - JHipster will add fields here
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public MessageBus name(String name) {
this.name = name;
return this;
}
public void setName(String name) {
this.name = name;
}
public String getContext() {
return context;
}
public MessageBus context(String context) {
this.context = context;
return this;
}
public void setContext(String context) {
this.context = context;
}
public String getData() {
return data;
}
public MessageBus data(String data) {
this.data = data;
return this;
}
public void setData(String data) {
this.data = data;
}
// jhipster-needle-entity-add-getters-setters - JHipster will add getters and setters here
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof MessageBus)) {
return false;
}
return id != null && id.equals(((MessageBus) o).id);
}
@Override
public int hashCode() {
return 31;
}
// prettier-ignore
@Override
public String toString() {
return "MessageBus{" +
"id=" + getId() +
", name='" + getName() + "'" +
", context='" + getContext() + "'" +
", data='" + getData() + "'" +
"}";
}
}