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 javax.persistence.Column;
19  import javax.persistence.Entity;
20  import javax.persistence.GeneratedValue;
21  import javax.persistence.GenerationType;
22  import javax.persistence.Id;
23  import javax.persistence.Lob;
24  import javax.persistence.Table;
25  
26  /**
27   *
28   */
29  @Entity
30  @Table(name="j3_signature_value")
31  public class SignatureValue implements java.io.Serializable {
32      private static final long serialVersionUID = -3233157941119408717L;
33      
34      private Long id;
35      private byte[] value;
36      private String xmlID;
37  
38      @Id
39      @GeneratedValue(strategy=GenerationType.AUTO)
40      public Long getId() {
41          return id;
42      }
43  
44      public void setId(Long id) {
45          this.id = id;
46      }
47  
48      @Column(name="value_bytes", length = 65636)
49      @Lob
50      public byte[] getValue() {
51          return value;
52      }
53  
54      public void setValue(byte[] value) {
55          this.value = value;
56      }
57  
58      @Column(name="xml_id")
59      public String getXmlID() {
60          return xmlID;
61      }
62  
63      public void setXmlID(String xmlID) {
64          this.xmlID = xmlID;
65      }
66  }