1 | |
package org.kuali.student.enrollment.lpr.model; |
2 | |
|
3 | |
import javax.persistence.*; |
4 | |
import java.io.Serializable; |
5 | |
import java.util.Date; |
6 | |
import java.util.List; |
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
@Entity |
12 | 0 | public class LuiPersonRelationState implements Serializable { |
13 | |
private static final long serialVersionUID = -2013712658823435043L; |
14 | |
|
15 | |
@Id |
16 | |
@GeneratedValue |
17 | |
private Long id; |
18 | |
|
19 | |
private String name; |
20 | |
|
21 | |
private String description; |
22 | |
|
23 | |
@Temporal(TemporalType.DATE) |
24 | |
private Date effectiveDate; |
25 | |
|
26 | |
@Temporal(TemporalType.DATE) |
27 | |
private Date expirationDate; |
28 | |
|
29 | |
@OneToMany(cascade = CascadeType.ALL) |
30 | |
@JoinColumn(name = "person_relation_state_id") |
31 | |
private List<DynamicAttribute> dynamicAttributes; |
32 | |
|
33 | |
public Long getId() { |
34 | 0 | return id; |
35 | |
} |
36 | |
|
37 | |
public void setId(Long id) { |
38 | 0 | this.id = id; |
39 | 0 | } |
40 | |
|
41 | |
public String getName() { |
42 | 0 | return name; |
43 | |
} |
44 | |
|
45 | |
public void setName(String name) { |
46 | 0 | this.name = name; |
47 | 0 | } |
48 | |
|
49 | |
public String getDescription() { |
50 | 0 | return description; |
51 | |
} |
52 | |
|
53 | |
public void setDescription(String description) { |
54 | 0 | this.description = description; |
55 | 0 | } |
56 | |
|
57 | |
public Date getEffectiveDate() { |
58 | 0 | return effectiveDate; |
59 | |
} |
60 | |
|
61 | |
public void setEffectiveDate(Date effectiveDate) { |
62 | 0 | this.effectiveDate = effectiveDate; |
63 | 0 | } |
64 | |
|
65 | |
public Date getExpirationDate() { |
66 | 0 | return expirationDate; |
67 | |
} |
68 | |
|
69 | |
public void setExpirationDate(Date expirationDate) { |
70 | 0 | this.expirationDate = expirationDate; |
71 | 0 | } |
72 | |
|
73 | |
public List<DynamicAttribute> getDynamicAttributes() { |
74 | 0 | return dynamicAttributes; |
75 | |
} |
76 | |
|
77 | |
public void setDynamicAttributes(List<DynamicAttribute> dynamicAttributes) { |
78 | 0 | this.dynamicAttributes = dynamicAttributes; |
79 | 0 | } |
80 | |
} |