This project has retired. For details please refer to its
Attic page.
ControlMessage xref
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.juddi.model;
18
19 import java.io.Serializable;
20 import javax.persistence.Column;
21 import javax.persistence.Entity;
22 import javax.persistence.FetchType;
23 import javax.persistence.GeneratedValue;
24 import javax.persistence.GenerationType;
25 import javax.persistence.Id;
26 import javax.persistence.JoinColumn;
27 import javax.persistence.ManyToOne;
28 import org.uddi.repl_v3.CommunicationGraph;
29
30
31
32
33
34 @Entity(name = "j3_ctrl_msg")
35 public class ControlMessage implements Serializable{
36 private static final long serialVersionUID = 1L;
37
38 public ControlMessage(){}
39 public ControlMessage(String msg){
40 this.message = msg;
41 }
42
43 private Long id;
44
45 private String message;
46
47 @Column(name = "j3_message")
48 public String getMessage() {
49 return message;
50 }
51
52 public void setMessage(String message) {
53 this.message = message;
54 }
55
56 @Id
57 @GeneratedValue(strategy = GenerationType.AUTO)
58 public Long getId() {
59 return id;
60 }
61
62 public void setId(Long id) {
63 this.id = id;
64 }
65
66
67
68 @ManyToOne(fetch = FetchType.LAZY)
69 @JoinColumn(name = "ReplicationConfiguration", nullable = true)
70 public ReplicationConfiguration getReplicationConfiguration() {
71 return parent;
72 }
73 private ReplicationConfiguration parent;
74 public void setReplicationConfiguration(ReplicationConfiguration p){
75 parent = p;
76 }
77
78 @ManyToOne(fetch = FetchType.LAZY)
79 @JoinColumn(name = "entity_key_ed", nullable = true)
80 public Edge getParentEdge(){
81 return this.edge;
82 }
83 private Edge edge;
84 public void setParentEdge(Edge e){
85 this.edge = e;
86 }
87
88 }