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.Table;
24  
25  /**
26   *
27   * @author jsightler
28   */
29  @Entity
30  @Table(name="j3_canonicalization_method")
31  public class CanonicalizationMethod {
32      private Long id;
33      private String algorithm;
34      
35      @Id
36      @GeneratedValue(strategy=GenerationType.AUTO)
37      public Long getId() {
38          return id;
39      }
40  
41      public void setId(Long id) {
42          this.id = id;
43      }
44  
45      @Column(name="algorithm")
46      public String getAlgorithm() {
47          return algorithm;
48      }
49  
50      public void setAlgorithm(String algorithm) {
51          this.algorithm = algorithm;
52      }
53  }