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.ManyToOne; |
26 |
|
import javax.persistence.NamedQueries; |
27 |
|
import javax.persistence.NamedQuery; |
28 |
|
import javax.persistence.OneToMany; |
29 |
|
import javax.persistence.Table; |
30 |
|
import javax.persistence.Temporal; |
31 |
|
import javax.persistence.TemporalType; |
32 |
|
|
33 |
|
import org.kuali.student.common.entity.AttributeOwner; |
34 |
|
import org.kuali.student.common.entity.MetaEntity; |
35 |
|
|
36 |
|
@Entity |
37 |
|
@Table(name = "KSLU_CLU_PUBL") |
38 |
|
@NamedQueries( { |
39 |
|
@NamedQuery(name = "CluPublication.findCluPublicationsByType", |
40 |
|
query = "SELECT cp FROM CluPublication cp WHERE cp.type.id = :luPublicationTypeKey"), |
41 |
|
@NamedQuery(name = "CluPublication.findPublicationsByCluId", |
42 |
|
query = "SELECT cp FROM CluPublication cp WHERE cp.clu.id = :cluId")}) |
|
|
| 100% |
Uncovered Elements: 0 (36) |
Complexity: 18 |
Complexity Density: 1 |
|
43 |
|
public class CluPublication extends MetaEntity implements AttributeOwner<CluPublicationAttribute> { |
44 |
|
|
45 |
|
@ManyToOne |
46 |
|
@JoinColumn(name = "CLU_ID") |
47 |
|
Clu clu; |
48 |
|
|
49 |
|
@Column(name = "START_CYCLE") |
50 |
|
private String startCycle; |
51 |
|
|
52 |
|
@Column(name = "END_CYCLE") |
53 |
|
private String endCycle; |
54 |
|
|
55 |
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "owner") |
56 |
|
private List<CluPublicationAttribute> attributes; |
57 |
|
|
58 |
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "owner") |
59 |
|
private List<CluPublicationVariant> variants; |
60 |
|
|
61 |
|
@ManyToOne |
62 |
|
@JoinColumn(name = "CLU_PUB_TYPE_ID") |
63 |
|
private CluPublicationType type; |
64 |
|
|
65 |
|
@Column(name = "ST") |
66 |
|
private String state; |
67 |
|
|
68 |
|
@Temporal(TemporalType.TIMESTAMP) |
69 |
|
@Column(name = "EFF_DT") |
70 |
|
private Date effectiveDate; |
71 |
|
|
72 |
|
@Temporal(TemporalType.TIMESTAMP) |
73 |
|
@Column(name = "EXPIR_DT") |
74 |
|
private Date expirationDate; |
75 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
76 |
258
|
public String getStartCycle() {... |
77 |
258
|
return startCycle; |
78 |
|
} |
79 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
80 |
89
|
public void setStartCycle(String startCycle) {... |
81 |
89
|
this.startCycle = startCycle; |
82 |
|
} |
83 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
84 |
258
|
public String getEndCycle() {... |
85 |
258
|
return endCycle; |
86 |
|
} |
87 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
88 |
89
|
public void setEndCycle(String endCycle) {... |
89 |
89
|
this.endCycle = endCycle; |
90 |
|
} |
91 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
92 |
525
|
public List<CluPublicationAttribute> getAttributes() {... |
93 |
525
|
return attributes; |
94 |
|
} |
95 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
96 |
147
|
public void setAttributes(List<CluPublicationAttribute> attributes) {... |
97 |
147
|
this.attributes = attributes; |
98 |
|
} |
99 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
100 |
258
|
public CluPublicationType getType() {... |
101 |
258
|
return type; |
102 |
|
} |
103 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
104 |
89
|
public void setType(CluPublicationType type) {... |
105 |
89
|
this.type = type; |
106 |
|
} |
107 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
108 |
258
|
public String getState() {... |
109 |
258
|
return state; |
110 |
|
} |
111 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
112 |
89
|
public void setState(String state) {... |
113 |
89
|
this.state = state; |
114 |
|
} |
115 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
116 |
116
|
public void setVariants(List<CluPublicationVariant> variants) {... |
117 |
116
|
this.variants = variants; |
118 |
|
} |
119 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
120 |
515
|
public List<CluPublicationVariant> getVariants() {... |
121 |
515
|
return variants; |
122 |
|
} |
123 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
124 |
258
|
public Clu getClu() {... |
125 |
258
|
return clu; |
126 |
|
} |
127 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
128 |
89
|
public void setClu(Clu clu) {... |
129 |
89
|
this.clu = clu; |
130 |
|
} |
131 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
132 |
258
|
public Date getEffectiveDate() {... |
133 |
258
|
return effectiveDate; |
134 |
|
} |
135 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
136 |
89
|
public void setEffectiveDate(Date effectiveDate) {... |
137 |
89
|
this.effectiveDate = effectiveDate; |
138 |
|
} |
139 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
140 |
258
|
public Date getExpirationDate() {... |
141 |
258
|
return expirationDate; |
142 |
|
} |
143 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
144 |
89
|
public void setExpirationDate(Date expirationDate) {... |
145 |
89
|
this.expirationDate = expirationDate; |
146 |
|
} |
147 |
|
} |