This project has retired. For details please refer to its Attic page.
ReplicationConfigurationNode xref
View Javadoc
1   /*
2    * Copyright 2014 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  package org.apache.juddi.model;
17  
18  import java.io.Serializable;
19  import javax.persistence.Column;
20  import javax.persistence.Entity;
21  import javax.persistence.FetchType;
22  import javax.persistence.GeneratedValue;
23  import javax.persistence.GenerationType;
24  import javax.persistence.Id;
25  import javax.persistence.JoinColumn;
26  import javax.persistence.ManyToOne;
27  import javax.persistence.Table;
28  
29  /**
30   *
31   * @author alex
32   */
33  @Entity
34  @Table(name = "j3_chg_replconfn")
35  public class ReplicationConfigurationNode implements Serializable {
36  
37          private static final long serialVersionUID = 1L;
38          private Long id;
39          private ReplicationConfiguration parent;
40          private String rx;
41  
42          @Id
43          @GeneratedValue(strategy = GenerationType.AUTO)
44          public Long getId() {
45                  return id;
46          }
47  
48          public void setId(Long id) {
49                  this.id = id;
50          }
51  
52          @ManyToOne(fetch = FetchType.LAZY)
53          @JoinColumn(name = "entity_key_ed", nullable = false)
54          public ReplicationConfiguration getParent() {
55                  return this.parent;
56          }
57          private Edge edge;
58  
59          public void setParent(ReplicationConfiguration e) {
60                  this.parent = e;
61          }
62  
63          @Column
64          public String getNodeName() {
65                  return this.rx;
66          }
67  
68          public void setNodeName(String s) {
69                  this.rx = s;
70          }
71  
72  }