Skip to content

Commit fe51a83

Browse files
Janith BandaraJanith Bandara
authored andcommitted
Implement serialize interface
1 parent 809f597 commit fe51a83

File tree

1 file changed

+52
-48
lines changed

1 file changed

+52
-48
lines changed
Lines changed: 52 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,62 @@
11
package org.audit4j.core.dto;
22

3+
import java.io.Serializable;
4+
35
/**
46
* The Class EventMeta.
57
*
68
* @author <a href="mailto:[email protected]">Janith Bandara</a>
79
*
810
* @since 2.4.0
911
*/
10-
public class EventMeta {
11-
12-
/** The client. */
13-
public String client;
14-
15-
/** The repository. */
16-
@Deprecated
17-
public String repository;
18-
19-
/**
20-
* Gets the client.
21-
*
22-
* @return the client
23-
*/
24-
public String getClient() {
25-
return client;
26-
}
27-
28-
/**
29-
* Sets the client.
30-
*
31-
* @param client
32-
* the new client
33-
*/
34-
public void setClient(String client) {
35-
this.client = client;
36-
}
37-
38-
/**
39-
* Gets the repository.
40-
*
41-
* @return the repository
42-
*/
43-
@Deprecated
44-
public String getRepository() {
45-
return repository;
46-
}
47-
48-
/**
49-
* Sets the repository.
50-
*
51-
* @param repository
52-
* the new repository
53-
*/
54-
@Deprecated
55-
public void setRepository(String repository) {
56-
this.repository = repository;
57-
}
12+
public class EventMeta implements Serializable {
13+
14+
private static final long serialVersionUID = 5190838195346568817L;
15+
16+
/** The client. */
17+
public String client;
18+
19+
/** The repository. */
20+
@Deprecated
21+
public String repository;
22+
23+
/**
24+
* Gets the client.
25+
*
26+
* @return the client
27+
*/
28+
public String getClient() {
29+
return client;
30+
}
31+
32+
/**
33+
* Sets the client.
34+
*
35+
* @param client
36+
* the new client
37+
*/
38+
public void setClient(String client) {
39+
this.client = client;
40+
}
41+
42+
/**
43+
* Gets the repository.
44+
*
45+
* @return the repository
46+
*/
47+
@Deprecated
48+
public String getRepository() {
49+
return repository;
50+
}
51+
52+
/**
53+
* Sets the repository.
54+
*
55+
* @param repository
56+
* the new repository
57+
*/
58+
@Deprecated
59+
public void setRepository(String repository) {
60+
this.repository = repository;
61+
}
5862
}

0 commit comments

Comments
 (0)