1 | |
package org.kuali.student.enrollment.class1.lui.model; |
2 | |
|
3 | |
import javax.persistence.Column; |
4 | |
import javax.persistence.Entity; |
5 | |
import javax.persistence.Id; |
6 | |
import javax.persistence.JoinColumn; |
7 | |
import javax.persistence.ManyToOne; |
8 | |
import javax.persistence.Table; |
9 | |
|
10 | |
import org.kuali.student.common.util.UUIDHelper; |
11 | |
|
12 | |
@Entity |
13 | |
@Table(name = "KSEN_LUI_UNITS_CONT_OWNER") |
14 | |
public class LuiUnitsContentOwnerEntity { |
15 | |
|
16 | |
@Id |
17 | |
@Column(name = "ID") |
18 | |
private String id; |
19 | |
|
20 | |
@ManyToOne |
21 | |
@JoinColumn(name = "LUI_ID") |
22 | |
private LuiEntity lui; |
23 | |
|
24 | |
@Column(name = "ORG_ID", nullable = false) |
25 | |
private String orgId; |
26 | |
|
27 | 0 | public LuiUnitsContentOwnerEntity(){ |
28 | 0 | } |
29 | |
|
30 | 0 | public LuiUnitsContentOwnerEntity(LuiEntity lui, String orgId){ |
31 | 0 | this.setId(UUIDHelper.genStringUUID()); |
32 | 0 | this.setLui(lui); |
33 | 0 | this.setOrgId(orgId); |
34 | 0 | } |
35 | |
|
36 | |
public String getId() { |
37 | 0 | return id; |
38 | |
} |
39 | |
|
40 | |
public void setId(String id) { |
41 | 0 | this.id = id; |
42 | 0 | } |
43 | |
|
44 | |
public LuiEntity getLui() { |
45 | 0 | return lui; |
46 | |
} |
47 | |
|
48 | |
public void setLui(LuiEntity lui) { |
49 | 0 | this.lui = lui; |
50 | 0 | } |
51 | |
|
52 | |
public String getOrgId() { |
53 | 0 | return orgId; |
54 | |
} |
55 | |
|
56 | |
public void setOrgId(String orgId) { |
57 | 0 | this.orgId = orgId; |
58 | 0 | } |
59 | |
} |