View Javadoc
1   /*
2    * Copyright 2006-2014 The Kuali Foundation
3    *
4    * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
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  
17  package org.kuali.rice.krad.test.conference;
18  
19  import org.kuali.rice.krad.data.provider.annotation.ExtensionFor;
20  
21  import javax.persistence.Column;
22  import javax.persistence.Entity;
23  import javax.persistence.Id;
24  import javax.persistence.JoinColumn;
25  import javax.persistence.OneToOne;
26  import javax.persistence.Table;
27  
28  @Entity
29  @Table(name = "KRTST_CONF_LBL_EXT_T")
30  @ExtensionFor(Label.class)
31  public class LabelExtension {
32  
33      @Id
34      @OneToOne
35      @JoinColumn(name = "NM")
36      private Label label;
37  
38      @Column(name = "EXTRA")
39      private String extra;
40  
41      public Label getLabel() {
42          return label;
43      }
44  
45      public void setLabel(Label label) {
46          this.label = label;
47      }
48  
49      public String getExtra() {
50          return extra;
51      }
52  
53      public void setExtra(String extra) {
54          this.extra = extra;
55      }
56  }