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 | |
import java.util.List; |
20 | |
|
21 | |
import javax.persistence.CascadeType; |
22 | |
import javax.persistence.Column; |
23 | |
import javax.persistence.Entity; |
24 | |
import javax.persistence.JoinColumn; |
25 | |
import javax.persistence.JoinTable; |
26 | |
import javax.persistence.ManyToMany; |
27 | |
import javax.persistence.OneToMany; |
28 | |
import javax.persistence.Table; |
29 | |
import javax.persistence.Temporal; |
30 | |
import javax.persistence.TemporalType; |
31 | |
|
32 | |
import org.kuali.student.common.entity.AttributeOwner; |
33 | |
import org.kuali.student.common.entity.MetaEntity; |
34 | |
|
35 | |
@Entity |
36 | |
@Table(name = "KSLU_LULU_RELTN_TYPE") |
37 | 0 | public class LuLuRelationType extends MetaEntity implements AttributeOwner<LuLuRelationTypeAttribute> { |
38 | |
|
39 | |
@ManyToMany |
40 | |
@JoinTable(name = "KSLU_LULU_RELTN_TYPE_JN_LU_TYP", joinColumns = @JoinColumn(name = "LULU_RELTN_TYPE_ID", referencedColumnName = "ID"), inverseJoinColumns = @JoinColumn(name = "LU_TYPE_ID", referencedColumnName = "TYPE_KEY")) |
41 | |
private List<LuType> luTypes; |
42 | |
|
43 | |
@Column(name = "NAME") |
44 | |
private String name; |
45 | |
|
46 | |
@Column(name = "DESCR") |
47 | |
private String descr; |
48 | |
|
49 | |
@Column(name = "REV_NAME") |
50 | |
private String revName; |
51 | |
|
52 | |
@Column(name = "REV_DESC") |
53 | |
private String revDesc; |
54 | |
|
55 | |
@Temporal(TemporalType.TIMESTAMP) |
56 | |
@Column(name = "EFF_DT") |
57 | |
private Date effectiveDate; |
58 | |
|
59 | |
@Temporal(TemporalType.TIMESTAMP) |
60 | |
@Column(name = "EXPIR_DT") |
61 | |
private Date expirationDate; |
62 | |
|
63 | |
@OneToMany(cascade = CascadeType.ALL, mappedBy = "owner") |
64 | |
private List<LuLuRelationTypeAttribute> attributes; |
65 | |
|
66 | |
public List<LuType> getLuTypes() { |
67 | 0 | return luTypes; |
68 | |
} |
69 | |
|
70 | |
public void setLuTypes(List<LuType> luTypes) { |
71 | 0 | this.luTypes = luTypes; |
72 | 0 | } |
73 | |
|
74 | |
public String getName() { |
75 | 0 | return name; |
76 | |
} |
77 | |
|
78 | |
public void setName(String name) { |
79 | 0 | this.name = name; |
80 | 0 | } |
81 | |
|
82 | |
public String getDescr() { |
83 | 0 | return descr; |
84 | |
} |
85 | |
|
86 | |
public void setDescr(String descr) { |
87 | 0 | this.descr = descr; |
88 | 0 | } |
89 | |
|
90 | |
public String getRevName() { |
91 | 0 | return revName; |
92 | |
} |
93 | |
|
94 | |
public void setRevName(String revName) { |
95 | 0 | this.revName = revName; |
96 | 0 | } |
97 | |
|
98 | |
public String getRevDesc() { |
99 | 0 | return revDesc; |
100 | |
} |
101 | |
|
102 | |
public void setRevDesc(String revDesc) { |
103 | 0 | this.revDesc = revDesc; |
104 | 0 | } |
105 | |
|
106 | |
public Date getEffectiveDate() { |
107 | 0 | return effectiveDate; |
108 | |
} |
109 | |
|
110 | |
public void setEffectiveDate(Date effectiveDate) { |
111 | 0 | this.effectiveDate = effectiveDate; |
112 | 0 | } |
113 | |
|
114 | |
public Date getExpirationDate() { |
115 | 0 | return expirationDate; |
116 | |
} |
117 | |
|
118 | |
public void setExpirationDate(Date expirationDate) { |
119 | 0 | this.expirationDate = expirationDate; |
120 | 0 | } |
121 | |
|
122 | |
public List<LuLuRelationTypeAttribute> getAttributes() { |
123 | 0 | return attributes; |
124 | |
} |
125 | |
|
126 | |
public void setAttributes(List<LuLuRelationTypeAttribute> attributes) { |
127 | 0 | this.attributes = attributes; |
128 | 0 | } |
129 | |
} |