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  import java.util.List;
20  
21  import javax.persistence.CascadeType;
22  import javax.persistence.Column;
23  import javax.persistence.Entity;
24  import javax.persistence.OneToMany;
25  import javax.persistence.Table;
26  import javax.persistence.Temporal;
27  import javax.persistence.TemporalType;
28  
29  import org.kuali.student.core.entity.AttributeOwner;
30  import org.kuali.student.core.entity.MetaEntity;
31  
32  /**
33   * This is a description of what this class does - hjohnson don't forget to fill
34   * this in.
35   * 
36   * @author Kuali Student Team (kuali-student@googlegroups.com)
37   * 
38   */
39  
40  @Entity
41  @Table(name = "KSLU_CLU_ACCRED")
42  public class CluAccreditation extends MetaEntity implements
43  		AttributeOwner<CluAccreditationAttribute> {
44  
45  	@Column(name = "ORG_ID")
46  	private String orgId;
47  
48  	@Temporal(TemporalType.TIMESTAMP)
49  	@Column(name = "EFF_DT")
50  	private Date effectiveDate;
51  
52  	@Temporal(TemporalType.TIMESTAMP)
53  	@Column(name = "EXPIR_DT")
54  	private Date expirationDate;
55  	
56  	@OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")
57  	private List<CluAccreditationAttribute> attributes;
58  
59  	public List<CluAccreditationAttribute> getAttributes() {
60  		return attributes;
61  	}
62  
63  	public void setAttributes(List<CluAccreditationAttribute> attributes) {
64  		this.attributes = attributes;
65  	}
66  
67  	public String getOrgId() {
68  		return orgId;
69  	}
70  
71  	public void setOrgId(String orgId) {
72  		this.orgId = orgId;
73  	}
74  
75  	public Date getEffectiveDate() {
76  		return effectiveDate;
77  	}
78  
79  	public void setEffectiveDate(Date effectiveDate) {
80  		this.effectiveDate = effectiveDate;
81  	}
82  
83  	public Date getExpirationDate() {
84  		return expirationDate;
85  	}
86  
87  	public void setExpirationDate(Date expirationDate) {
88  		this.expirationDate = expirationDate;
89  	}
90  
91  }