This project has retired. For details please refer to its Attic page.
ValueSetValues xref
View Javadoc
1   /*
2    * Copyright 2001-2008 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.Column;
21  import javax.persistence.Entity;
22  import javax.persistence.FetchType;
23  import javax.persistence.Id;
24  import javax.persistence.JoinColumn;
25  import javax.persistence.ManyToOne;
26  import javax.persistence.OneToMany;
27  import javax.persistence.OrderBy;
28  import javax.persistence.Table;
29  
30  /**
31   *
32   * @author <a href="mailto:alexoree@apache.org">Alex O'Ree</a>
33   */
34  @Entity
35  @Table(name = "j3_valuesets")
36  public class ValueSetValues implements java.io.Serializable {
37  
38          public static final transient String TABLE_NAME = "j3_valuesets";
39          public static final transient String COLUMN_TMODELKEY = "j3_tmodelkey";
40          private static final long serialVersionUID = 7767295374035531912L;
41          // private Long id;
42          private String tmodelKey;
43          private String ValidatorClass;
44          
45          
46          public ValueSetValues() {
47          }
48  
49          public ValueSetValues(String tmodelkey, String clazz) {
50                  this.tmodelKey = tmodelkey;
51                  this.ValidatorClass=clazz;
52          }
53  
54          /*
55           @GeneratedValue(strategy = GenerationType.AUTO)
56           public Long getId() {
57           return this.id;
58           }
59  
60           public void setId(Long id) {
61           this.id = id;
62           }*/
63          @Id
64          @Column(name = "j3_tmodelkey", nullable = false, length = 255)
65          public String getTModelKey() {
66                  return this.tmodelKey;
67          }
68  
69          public void setTModelKey(String key) {
70                  this.tmodelKey = key;
71          }
72          
73          /**
74           * 
75           * @return should be one of businessService, businessEntity, bindingTemplate, tModel
76           */
77          @Column(name = "j3_validatorclass", nullable = false, length = 255)
78          public String getValidatorClass() {
79                  return this.ValidatorClass;
80          }
81  
82          /**
83           * 
84           * @param type should be one of businessService, businessEntity, bindingTemplate, tModel
85          */
86          public void setValidatorClass(String clazz) {
87                  this.ValidatorClass=clazz;
88          }
89  
90         
91  }