1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
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.common.entity.BaseEntity; |
26 | |
|
27 | |
@Entity |
28 | |
@Table(name = "KSLU_RSRC", uniqueConstraints = @UniqueConstraint(columnNames = { |
29 | |
"RSRC_TYPE_ID", "CLU_ID" })) |
30 | 0 | 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 | 0 | return resourceTypeId; |
41 | |
} |
42 | |
|
43 | |
public void setResourceTypeId(String resourceTypeId) { |
44 | 0 | this.resourceTypeId = resourceTypeId; |
45 | 0 | } |
46 | |
|
47 | |
public Clu getClu() { |
48 | 0 | return clu; |
49 | |
} |
50 | |
|
51 | |
public void setClu(Clu clu) { |
52 | 0 | this.clu = clu; |
53 | 0 | } |
54 | |
} |