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 at7 *8 * http://www.apache.org/licenses/LICENSE-2.09 *10 * Unless required by applicable law or agreed to in writing, software11 * 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 and14 * limitations under the License.15 */16package org.apache.juddi.model;
1718import java.io.Serializable;
19import javax.persistence.Column;
20import javax.persistence.Entity;
21import javax.persistence.FetchType;
22import javax.persistence.GeneratedValue;
23import javax.persistence.GenerationType;
24import javax.persistence.Id;
25import javax.persistence.JoinColumn;
26import javax.persistence.ManyToOne;
27import javax.persistence.Table;
2829/**30 *31 * @author alex32 */33 @Entity
34 @Table(name = "j3_chg_replconfn")
35publicclassReplicationConfigurationNodeimplements Serializable {
3637privatestaticfinallong serialVersionUID = 1L;
38private Long id;
39privateReplicationConfiguration parent;
40private String rx;
4142 @Id
43 @GeneratedValue(strategy = GenerationType.AUTO)
44public Long getId() {
45return id;
46 }
4748publicvoid setId(Long id) {
49this.id = id;
50 }
5152 @ManyToOne(fetch = FetchType.LAZY)
53 @JoinColumn(name = "entity_key_ed", nullable = false)
54publicReplicationConfiguration getParent() {
55returnthis.parent;
56 }
57privateEdge edge;
5859publicvoid setParent(ReplicationConfiguration e) {
60this.parent = e;
61 }
6263 @Column
64public String getNodeName() {
65returnthis.rx;
66 }
6768publicvoid setNodeName(String s) {
69this.rx = s;
70 }
7172 }