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_replcfgear")
35publicclassEdgeReceiverAlternateimplements Serializable{
36privatestaticfinallong serialVersionUID = -3199894835641632162L;
37 Long id;
38 String rx;
3940 @Id
41 @GeneratedValue(strategy = GenerationType.AUTO)
42public Long getId() {
43return id;
44 }
4546publicvoid setId(Long id) {
47this.id = id;
48 }
4950 @ManyToOne(fetch = FetchType.LAZY, targetEntity = Edge.class)
51 @JoinColumn(name = "entity_key_ed", nullable = false)
52publicEdge getParent(){
53returnthis.edge;
54 }
55privateEdge edge;
56publicvoid setParent(Edge e){
57this.edge = e;
58 }
5960 @Column
61public String getReceiverAlternate() {
62returnthis.rx;
63 }
6465publicvoid setReceiverAlternate(String s) {
66this.rx = s;
67 }
68 }