This project has retired. For details please refer to its Attic page.
KeyInfo xref
View Javadoc
1   /*
2    * Copyright 2012 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.util.ArrayList;
19  import java.util.List;
20  import javax.persistence.CascadeType;
21  import javax.persistence.Column;
22  import javax.persistence.Entity;
23  import javax.persistence.FetchType;
24  import javax.persistence.GeneratedValue;
25  import javax.persistence.GenerationType;
26  import javax.persistence.Id;
27  import javax.persistence.OneToMany;
28  import javax.persistence.OrderBy;
29  import javax.persistence.Table;
30  
31  /**
32   *
33   */
34  @Entity
35  @Table(name="j3_key_info")
36  public class KeyInfo implements java.io.Serializable {
37      private static final long serialVersionUID = -7353389848796421615L;
38  
39      private Long id;
40      private List<KeyDataValue> keyDataValue = new ArrayList<KeyDataValue>();
41      private String xmlID;
42      
43      @Id
44      @GeneratedValue(strategy=GenerationType.AUTO)
45      public Long getId() {
46          return id;
47      }
48  
49      public void setId(Long id) {
50          this.id = id;
51      }
52  
53      @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "keyInfo")
54      @OrderBy
55      public List<KeyDataValue> getKeyDataValue() {
56          return keyDataValue;
57      }
58  
59      public void setKeyDataValue(List<KeyDataValue> keyDataValue) {
60          this.keyDataValue = keyDataValue;
61      }
62      
63      @Column(name="xml_id")
64      public String getXmlID() {
65          return xmlID;
66      }
67  
68      public void setXmlID(String xmlID) {
69          this.xmlID = xmlID;
70      }
71  }