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 java.util.Date; |
19 | |
|
20 | |
import javax.persistence.Column; |
21 | |
import javax.persistence.Entity; |
22 | |
import javax.persistence.JoinColumn; |
23 | |
import javax.persistence.ManyToOne; |
24 | |
import javax.persistence.NamedQueries; |
25 | |
import javax.persistence.NamedQuery; |
26 | |
import javax.persistence.Table; |
27 | |
import javax.persistence.Temporal; |
28 | |
import javax.persistence.TemporalType; |
29 | |
|
30 | |
import org.kuali.student.common.entity.MetaEntity; |
31 | |
|
32 | |
@Entity |
33 | |
@Table(name = "KSLU_LU_LU_ALOW_RELTN_TYPE") |
34 | |
@NamedQueries( { @NamedQuery(name = "AllowedLuLuRelationType.getAllowedTypesByLuTypes", query = "SELECT relType.relationType.id FROM AllowedLuLuRelationType relType WHERE luType.id = :luTypeId and relatedLuType.id = :relatedLuTypeId") }) |
35 | 0 | public class AllowedLuLuRelationType extends MetaEntity { |
36 | |
|
37 | |
@ManyToOne |
38 | |
@JoinColumn(name = "LU_LU_RELTN_TYPE_ID") |
39 | |
private LuLuRelationType relationType; |
40 | |
|
41 | |
@ManyToOne |
42 | |
@JoinColumn(name = "LU_TYPE_ID") |
43 | |
private LuType luType; |
44 | |
|
45 | |
@ManyToOne |
46 | |
@JoinColumn(name = "LU_REL_TYPE_ID") |
47 | |
private LuType relatedLuType; |
48 | |
|
49 | |
@Temporal(TemporalType.TIMESTAMP) |
50 | |
@Column(name = "EFF_DT") |
51 | |
private Date effectiveDate; |
52 | |
|
53 | |
@Temporal(TemporalType.TIMESTAMP) |
54 | |
@Column(name = "EXPIR_DT") |
55 | |
private Date expirationDate; |
56 | |
|
57 | |
public LuLuRelationType getRelationType() { |
58 | 0 | return relationType; |
59 | |
} |
60 | |
|
61 | |
public void setRelationType(LuLuRelationType relationType) { |
62 | 0 | this.relationType = relationType; |
63 | 0 | } |
64 | |
|
65 | |
public LuType getLuType() { |
66 | 0 | return luType; |
67 | |
} |
68 | |
|
69 | |
public void setLuType(LuType luType) { |
70 | 0 | this.luType = luType; |
71 | 0 | } |
72 | |
|
73 | |
public LuType getRelatedLuType() { |
74 | 0 | return relatedLuType; |
75 | |
} |
76 | |
|
77 | |
public void setRelatedLuType(LuType relatedLuType) { |
78 | 0 | this.relatedLuType = relatedLuType; |
79 | 0 | } |
80 | |
|
81 | |
|
82 | |
|
83 | |
|
84 | |
public void setEffectiveDate(Date effectiveDate) { |
85 | 0 | this.effectiveDate = effectiveDate; |
86 | 0 | } |
87 | |
|
88 | |
|
89 | |
|
90 | |
|
91 | |
public Date getEffectiveDate() { |
92 | 0 | return effectiveDate; |
93 | |
} |
94 | |
|
95 | |
|
96 | |
|
97 | |
|
98 | |
public void setExpirationDate(Date expirationDate) { |
99 | 0 | this.expirationDate = expirationDate; |
100 | 0 | } |
101 | |
|
102 | |
|
103 | |
|
104 | |
|
105 | |
public Date getExpirationDate() { |
106 | 0 | return expirationDate; |
107 | |
} |
108 | |
} |