This project has retired. For details please refer to its Attic page.
EdgeReceiverAlternate 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_replcfgear")
35  public class EdgeReceiverAlternate implements Serializable{
36          private static final long serialVersionUID = -3199894835641632162L;
37         Long id;
38         String rx;
39         
40                 @Id
41          @GeneratedValue(strategy = GenerationType.AUTO)
42          public Long getId() {
43                  return id;
44          }
45  
46          public void setId(Long id) {
47                  this.id = id;
48          }
49          
50           @ManyToOne(fetch = FetchType.LAZY, targetEntity = Edge.class)
51  	@JoinColumn(name = "entity_key_ed", nullable = false)
52           public Edge getParent(){
53                   return this.edge;
54           }
55           private Edge edge;
56           public void setParent(Edge e){
57                   this.edge = e;
58           }
59  
60           @Column
61           public String getReceiverAlternate() {
62                  return this.rx;
63          }
64           
65          public void setReceiverAlternate(String s) {
66                  this.rx = s;
67          }
68  }