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.Date;
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.Table;
26  import javax.persistence.Temporal;
27  import javax.persistence.TemporalType;
28  
29  import org.kuali.student.r2.common.entity.MetaEntity;
30  
31  @Entity
32  @Table(name = "KSLU_RSLT_OPT")
33  // TODO: wrong table - convert to r2 table and structure
34  public class ResultOption extends MetaEntity  {
35  
36  	@ManyToOne(cascade=CascadeType.ALL)
37  	@JoinColumn(name="RES_USAGE_ID")
38  	private ResultUsageType resultUsageType;
39  
40  	@Column(name = "RES_COMP_ID")
41  	private String resultComponentId;
42  
43  	@ManyToOne(cascade=CascadeType.ALL)
44  	@JoinColumn(name = "RT_DESCR_ID")
45  	private LuRichText desc;
46  
47  	@Temporal(TemporalType.TIMESTAMP)
48  	@Column(name = "EFF_DT")
49  	private Date effectiveDate;
50  
51  	@Temporal(TemporalType.TIMESTAMP)
52  	@Column(name = "EXPIR_DT")
53  	private Date expirationDate;
54  	
55  	@Column(name = "ST")
56      private String state;
57  
58  	public ResultUsageType getResultUsageType() {
59  		return resultUsageType;
60  	}
61  
62  	public void setResultUsageType(ResultUsageType resultUsageType) {
63  		this.resultUsageType = resultUsageType;
64  	}
65  
66  	public String getResultComponentId() {
67  		return resultComponentId;
68  	}
69  
70  	public void setResultComponentId(String resultComponentId) {
71  		this.resultComponentId = resultComponentId;
72  	}
73  
74  	public LuRichText getDesc() {
75  		return desc;
76  	}
77  
78  	public void setDesc(LuRichText desc) {
79  		this.desc = desc;
80  	}
81  
82  	public Date getEffectiveDate() {
83  		return effectiveDate;
84  	}
85  
86  	public void setEffectiveDate(Date effectiveDate) {
87  		this.effectiveDate = effectiveDate;
88  	}
89  
90  	public Date getExpirationDate() {
91  		return expirationDate;
92  	}
93  
94  	public void setExpirationDate(Date expirationDate) {
95  		this.expirationDate = expirationDate;
96  	}
97  
98  	public String getState() {
99  		return state;
100 	}
101 
102 	public void setState(String state) {
103 		this.state = state;
104 	}
105 		
106 }