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 javax.persistence.Column;
19  import javax.persistence.Entity;
20  import javax.persistence.JoinColumn;
21  import javax.persistence.ManyToOne;
22  import javax.persistence.Table;
23  import javax.persistence.UniqueConstraint;
24  
25  import org.kuali.student.core.entity.BaseEntity;
26  
27  @Entity
28  @Table(name = "KSLU_RSRC", uniqueConstraints = @UniqueConstraint(columnNames = {
29  		"RSRC_TYPE_ID", "CLU_ID" }))
30  public class Resource extends BaseEntity{
31  
32  	@Column(name = "RSRC_TYPE_ID")
33  	private String resourceTypeId;
34  
35  	@ManyToOne
36  	@JoinColumn(name = "CLU_ID")
37  	private Clu clu;
38  
39  	public String getResourceTypeId() {
40  		return resourceTypeId;
41  	}
42  
43  	public void setResourceTypeId(String resourceTypeId) {
44  		this.resourceTypeId = resourceTypeId;
45  	}
46  
47  	public Clu getClu() {
48  		return clu;
49  	}
50  
51  	public void setClu(Clu clu) {
52  		this.clu = clu;
53  	}
54  }