View Javadoc

1   /**
2    * Copyright 2010 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10   * software distributed under the License is distributed on an "AS IS"
11   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12   * or implied. See the License for the specific language governing
13   * permissions and limitations under the License.
14   */
15  
16  package org.kuali.student.lum.lu.entity;
17   
18  import java.util.List;
19  
20  import javax.persistence.CascadeType;
21  import javax.persistence.Column;
22  import javax.persistence.Entity;
23  import javax.persistence.OneToMany;
24  import javax.persistence.Table;
25  
26  import org.kuali.student.core.entity.AttributeOwner;
27  import org.kuali.student.core.entity.BaseEntity;
28  
29  @Entity
30  @Table(name = "KSLU_CLU_INSTR")
31  public class CluInstructor extends BaseEntity implements AttributeOwner<CluInstructorAttribute> {
32      
33      @Column(name = "ORG_ID")
34      private String orgId;
35  
36      @Column(name = "PERS_ID")
37      private String personId;
38      
39  	@OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")
40      private List<CluInstructorAttribute> attributes;
41  
42      public String getOrgId() {
43          return orgId;
44      }
45  
46      public void setOrgId(String orgId) {
47          this.orgId = orgId;
48      }
49  
50      public String getPersonId() {
51          return personId;
52      }
53  
54      public void setPersonId(String personId) {
55          this.personId = personId;
56      }
57      
58      public List<CluInstructorAttribute> getAttributes() {
59          return attributes;
60      }
61  
62      public void setAttributes(List<CluInstructorAttribute> attributes) {
63          this.attributes = attributes;
64      }
65  
66  }