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_CLUCLU_RELTN") |
14 | |
public class LuiCluCluRelationEntity { |
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 = "CLUCLU_RELTN_ID", nullable = false) |
25 | |
private String clucluRelationId; |
26 | |
|
27 | 0 | public LuiCluCluRelationEntity() {} |
28 | |
|
29 | 0 | public LuiCluCluRelationEntity(LuiEntity lui, String clucluRelationId) { |
30 | 0 | this.setId(UUIDHelper.genStringUUID()); |
31 | 0 | this.setClucluRelationId(clucluRelationId); |
32 | 0 | this.setLui(lui); |
33 | 0 | } |
34 | |
|
35 | |
public String getId() { |
36 | 0 | return id; |
37 | |
} |
38 | |
|
39 | |
public void setId(String id) { |
40 | 0 | this.id = id; |
41 | 0 | } |
42 | |
|
43 | |
public LuiEntity getLui() { |
44 | 0 | return lui; |
45 | |
} |
46 | |
|
47 | |
public void setLui(LuiEntity lui) { |
48 | 0 | this.lui = lui; |
49 | 0 | } |
50 | |
|
51 | |
public String getClucluRelationId() { |
52 | 0 | return clucluRelationId; |
53 | |
} |
54 | |
|
55 | |
public void setClucluRelationId(String clucluRelationId) { |
56 | 0 | this.clucluRelationId = clucluRelationId; |
57 | 0 | } |
58 | |
|
59 | |
} |