This project has retired. For details please refer to its Attic page.
SignatureTransform 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.JoinColumn;
28  import javax.persistence.ManyToOne;
29  import javax.persistence.OneToMany;
30  import javax.persistence.OrderBy;
31  import javax.persistence.Table;
32  
33  /**
34   *
35   */
36  @Entity
37  @Table(name="j3_signature_transform")
38  public class SignatureTransform implements java.io.Serializable {
39      private static final long serialVersionUID = -3233157941119408702L;
40      
41      private Long id;
42      private Reference reference;
43      private String transform;
44      private List<SignatureTransformDataValue> signatureTransformDataValue = new ArrayList<SignatureTransformDataValue>(0);
45      
46      @Id
47      @GeneratedValue(strategy=GenerationType.AUTO)
48      public Long getId() {
49          return id;
50      }
51  
52      public void setId(Long id) {
53          this.id = id;
54      }
55  
56      @ManyToOne(fetch = FetchType.LAZY)
57      @JoinColumn(name = "reference_key", nullable = false)
58      public Reference getReference() {
59          return reference;
60      }
61  
62      public void setReference(Reference reference) {
63          this.reference = reference;
64      }
65  
66      @Column(name="transform")
67      public String getTransform() {
68          return transform;
69      }
70  
71      public void setTransform(String transform) {
72          this.transform = transform;
73      }
74  
75      @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "signatureTransform")
76      @OrderBy
77      public List<SignatureTransformDataValue> getSignatureTransformDataValue() {
78          return signatureTransformDataValue;
79      }
80  
81      public void setSignatureTransformDataValue(List<SignatureTransformDataValue> signatureDataValue) {
82          this.signatureTransformDataValue = signatureDataValue;
83      }    
84  }