This project has retired. For details please refer to its Attic page.
ControlMessage xref
View Javadoc
1   /*
2    * Copyright 2013 The Apache Software Foundation.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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   * @author Alex O'Ree
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         //  @JoinColumn( )
67         // @ManyToOne(targetEntity = ReplicationConfiguration.class)
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  }