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_RSLTUSAGE_LU_ALOW_TYPE") |
34 | |
@NamedQueries( { @NamedQuery(name = "AllowedResultUsageLuType.getAllowedTypesByLuType", query = "SELECT atype.resultUsageType.id FROM AllowedResultUsageLuType atype WHERE luType.id = :luTypeId") }) |
35 | 0 | public class AllowedResultUsageLuType extends MetaEntity { |
36 | |
|
37 | |
private static final long serialVersionUID = 1L; |
38 | |
|
39 | |
@ManyToOne |
40 | |
@JoinColumn(name = "CLU_RSLT_USAGE_TYPE_ID") |
41 | |
private ResultUsageType resultUsageType; |
42 | |
|
43 | |
@ManyToOne |
44 | |
@JoinColumn(name = "LU_TYPE_ID") |
45 | |
private LuType luType; |
46 | |
|
47 | |
@Temporal(TemporalType.TIMESTAMP) |
48 | |
@Column(name = "EFF_DT") |
49 | |
private Date effectiveDate; |
50 | |
|
51 | |
@Temporal(TemporalType.TIMESTAMP) |
52 | |
@Column(name = "EXPIR_DT") |
53 | |
private Date expirationDate; |
54 | |
|
55 | |
public LuType getLuType() { |
56 | 0 | return luType; |
57 | |
} |
58 | |
|
59 | |
public void setLuType(LuType luType) { |
60 | 0 | this.luType = luType; |
61 | 0 | } |
62 | |
|
63 | |
public Date getEffectiveDate() { |
64 | 0 | return effectiveDate; |
65 | |
} |
66 | |
|
67 | |
public void setEffectiveDate(Date effectiveDate) { |
68 | 0 | this.effectiveDate = effectiveDate; |
69 | 0 | } |
70 | |
|
71 | |
public Date getExpirationDate() { |
72 | 0 | return expirationDate; |
73 | |
} |
74 | |
|
75 | |
public void setExpirationDate(Date expirationDate) { |
76 | 0 | this.expirationDate = expirationDate; |
77 | 0 | } |
78 | |
|
79 | |
public ResultUsageType getResultUsageType() { |
80 | 0 | return resultUsageType; |
81 | |
} |
82 | |
|
83 | |
public void setResultUsageType(ResultUsageType resultUsageType) { |
84 | 0 | this.resultUsageType = resultUsageType; |
85 | 0 | } |
86 | |
|
87 | |
} |