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.r2.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.r1.common.entity.AttributeOwner;
27  import org.kuali.student.r1.common.entity.BaseEntity;
28  
29  @Entity
30  @Table(name = "KSLU_CLU_IDENT")
31  public class CluIdentifier extends BaseEntity implements AttributeOwner<CluIdentifierAttribute> {
32  
33      @Column(name = "CD")
34      private String code;
35  
36      @Column(name = "SHRT_NAME")
37      private String shortName;
38  
39      @Column(name = "LNG_NAME")
40      private String longName;
41  
42      @Column(name = "LVL")
43      private String level;
44  
45      @Column(name = "DIVISION")
46      private String division;
47  
48      @Column(name = "VARTN")
49      private String variation;
50  
51      @Column(name = "SUFX_CD")
52      private String suffixCode;
53  
54      @Column(name = "ORG_ID")
55      private String orgId;
56  
57      @Column(name = "TYPE")
58      private String type;
59  
60      @Column(name = "ST")
61      private String state;
62      
63      @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")
64      private List<CluIdentifierAttribute> attributes;
65      
66      public String getCode() {
67          return code;
68      }
69  
70      public void setCode(String code) {
71          this.code = code;
72      }
73  
74      public String getShortName() {
75          return shortName;
76      }
77  
78      public void setShortName(String shortName) {
79          this.shortName = shortName;
80      }
81  
82      public String getLongName() {
83          return longName;
84      }
85  
86      public void setLongName(String longName) {
87          this.longName = longName;
88      }
89  
90      public String getLevel() {
91          return level;
92      }
93  
94      public void setLevel(String level) {
95          this.level = level;
96      }
97  
98      public String getDivision() {
99          return division;
100     }
101 
102     public void setDivision(String division) {
103         this.division = division;
104     }
105 
106     public String getVariation() {
107         return variation;
108     }
109 
110     public void setVariation(String variation) {
111         this.variation = variation;
112     }
113 
114     public String getType() {
115         return type;
116     }
117 
118     public void setType(String type) {
119         this.type = type;
120     }
121 
122     public String getState() {
123         return state;
124     }
125 
126     public void setState(String state) {
127         this.state = state;
128     }
129 
130     public String getSuffixCode() {
131         return suffixCode;
132     }
133 
134     public void setSuffixCode(String suffixCode) {
135         this.suffixCode = suffixCode;
136     }
137 
138     public String getOrgId() {
139         return orgId;
140     }
141 
142     public void setOrgId(String orgId) {
143         this.orgId = orgId;
144     }
145 
146     public List<CluIdentifierAttribute> getAttributes() {
147         return attributes;
148     }
149 
150     public void setAttributes(List<CluIdentifierAttribute> attributes) {
151         this.attributes = attributes;
152     }        
153 }