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.JoinColumn;
24  import javax.persistence.ManyToOne;
25  import javax.persistence.OneToMany;
26  import javax.persistence.Table;
27  
28  
29  import org.kuali.student.r1.common.entity.AttributeOwner;
30  import org.kuali.student.r1.common.entity.MetaEntity;
31  
32  @Entity
33  @Table(name = "KSLU_LU_CODE")
34  public class LuCode extends MetaEntity implements AttributeOwner<LuCodeAttribute> {
35      
36  	@Column(name = "DESCR")
37  	private String descr;
38  
39  	@Column(name = "VALUE")
40  	private String value;
41  
42  	@OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")
43  	private List<LuCodeAttribute> attributes;
44  
45  	@Column(name = "TYPE")
46  	private String type;
47  
48  	@ManyToOne
49  	@JoinColumn(name="CLU_ID")
50  	private Clu clu;
51  	
52  	public String getDescr() {
53  		return descr;
54  	}
55  
56  	public void setDescr(String descr) {
57  		this.descr = descr;
58  	}
59  
60  	public String getValue() {
61  		return value;
62  	}
63  
64  	public void setValue(String value) {
65  		this.value = value;
66  	}
67  
68  	public List<LuCodeAttribute> getAttributes() {
69  		return attributes;
70  	}
71  
72  	public void setAttributes(List<LuCodeAttribute> attributes) {
73  		this.attributes = attributes;
74  	}
75  
76  	public String getType() {
77  		return type;
78  	}
79  
80  	public void setType(String type) {
81  		this.type = type;
82  	}
83  
84  	public Clu getClu() {
85  		return clu;
86  	}
87  
88  	public void setClu(Clu clu) {
89  		this.clu = clu;
90  	}
91  
92  }