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