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 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.util.ArrayList;
19import java.util.List;
20import javax.persistence.CascadeType;
21import javax.persistence.Column;
22import javax.persistence.Entity;
23import javax.persistence.FetchType;
24import javax.persistence.GeneratedValue;
25import javax.persistence.GenerationType;
26import javax.persistence.Id;
27import javax.persistence.OneToMany;
28import javax.persistence.OrderBy;
29import javax.persistence.Table;
3031/**32 *33 */34 @Entity
35 @Table(name="j3_key_info")
36publicclassKeyInfoimplements java.io.Serializable {
37privatestaticfinallong serialVersionUID = -7353389848796421615L;
3839private Long id;
40private List<KeyDataValue> keyDataValue = new ArrayList<KeyDataValue>();
41private String xmlID;
4243 @Id
44 @GeneratedValue(strategy=GenerationType.AUTO)
45public Long getId() {
46return id;
47 }
4849publicvoid setId(Long id) {
50this.id = id;
51 }
5253 @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "keyInfo")
54 @OrderBy
55public List<KeyDataValue> getKeyDataValue() {
56return keyDataValue;
57 }
5859publicvoid setKeyDataValue(List<KeyDataValue> keyDataValue) {
60this.keyDataValue = keyDataValue;
61 }
6263 @Column(name="xml_id")
64public String getXmlID() {
65return xmlID;
66 }
6768publicvoid setXmlID(String xmlID) {
69this.xmlID = xmlID;
70 }
71 }