1 | |
package org.kuali.student.enrollment.lpr.model; |
2 | |
|
3 | |
import java.util.Date; |
4 | |
import java.util.List; |
5 | |
|
6 | |
import javax.persistence.CascadeType; |
7 | |
import javax.persistence.Column; |
8 | |
import javax.persistence.Entity; |
9 | |
import javax.persistence.OneToMany; |
10 | |
import javax.persistence.Table; |
11 | |
import javax.persistence.Temporal; |
12 | |
import javax.persistence.TemporalType; |
13 | |
|
14 | |
import org.kuali.student.r2.common.entity.AttributeOwner; |
15 | |
import org.kuali.student.r2.common.entity.MetaEntity; |
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
@Entity |
21 | |
@Table(name = "KSLP_LPR_STATE") |
22 | 0 | public class LuiPersonRelationStateEntity extends MetaEntity implements AttributeOwner<LuiPersonRelationAttributeEntity> { |
23 | |
|
24 | |
private String name; |
25 | |
|
26 | |
@Column(name="DESCR") |
27 | |
private String description; |
28 | |
|
29 | |
@Temporal(TemporalType.TIMESTAMP) |
30 | |
private Date effectiveDate; |
31 | |
|
32 | |
@Temporal(TemporalType.TIMESTAMP) |
33 | |
private Date expirationDate; |
34 | |
|
35 | |
@OneToMany(cascade = CascadeType.ALL) |
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
private List<LuiPersonRelationAttributeEntity> attributes; |
41 | |
|
42 | |
public String getName() { |
43 | 0 | return name; |
44 | |
} |
45 | |
|
46 | |
public void setName(String name) { |
47 | 0 | this.name = name; |
48 | 0 | } |
49 | |
|
50 | |
public String getDescription() { |
51 | 0 | return description; |
52 | |
} |
53 | |
|
54 | |
public void setDescription(String description) { |
55 | 0 | this.description = description; |
56 | 0 | } |
57 | |
|
58 | |
public Date getEffectiveDate() { |
59 | 0 | return effectiveDate; |
60 | |
} |
61 | |
|
62 | |
public void setEffectiveDate(Date effectiveDate) { |
63 | 0 | this.effectiveDate = effectiveDate; |
64 | 0 | } |
65 | |
|
66 | |
public Date getExpirationDate() { |
67 | 0 | return expirationDate; |
68 | |
} |
69 | |
|
70 | |
public void setExpirationDate(Date expirationDate) { |
71 | 0 | this.expirationDate = expirationDate; |
72 | 0 | } |
73 | |
|
74 | |
@Override |
75 | |
public List<LuiPersonRelationAttributeEntity> getAttributes() { |
76 | 0 | return attributes; |
77 | |
} |
78 | |
|
79 | |
@Override |
80 | |
public void setAttributes(List<LuiPersonRelationAttributeEntity> attributes) { |
81 | 0 | this.attributes = attributes; |
82 | 0 | } |
83 | |
|
84 | |
} |