| 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")}) |
|
|
|
| 0% |
Uncovered Elements: 36 (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 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 76 |
0
|
public String getStartCycle() {... |
| 77 |
0
|
return startCycle; |
| 78 |
|
} |
| 79 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 80 |
0
|
public void setStartCycle(String startCycle) {... |
| 81 |
0
|
this.startCycle = startCycle; |
| 82 |
|
} |
| 83 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 84 |
0
|
public String getEndCycle() {... |
| 85 |
0
|
return endCycle; |
| 86 |
|
} |
| 87 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 88 |
0
|
public void setEndCycle(String endCycle) {... |
| 89 |
0
|
this.endCycle = endCycle; |
| 90 |
|
} |
| 91 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 92 |
0
|
public List<CluPublicationAttribute> getAttributes() {... |
| 93 |
0
|
return attributes; |
| 94 |
|
} |
| 95 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 96 |
0
|
public void setAttributes(List<CluPublicationAttribute> attributes) {... |
| 97 |
0
|
this.attributes = attributes; |
| 98 |
|
} |
| 99 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 100 |
0
|
public CluPublicationType getType() {... |
| 101 |
0
|
return type; |
| 102 |
|
} |
| 103 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 104 |
0
|
public void setType(CluPublicationType type) {... |
| 105 |
0
|
this.type = type; |
| 106 |
|
} |
| 107 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 108 |
0
|
public String getState() {... |
| 109 |
0
|
return state; |
| 110 |
|
} |
| 111 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 112 |
0
|
public void setState(String state) {... |
| 113 |
0
|
this.state = state; |
| 114 |
|
} |
| 115 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 116 |
0
|
public void setVariants(List<CluPublicationVariant> variants) {... |
| 117 |
0
|
this.variants = variants; |
| 118 |
|
} |
| 119 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 120 |
0
|
public List<CluPublicationVariant> getVariants() {... |
| 121 |
0
|
return variants; |
| 122 |
|
} |
| 123 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 124 |
0
|
public Clu getClu() {... |
| 125 |
0
|
return clu; |
| 126 |
|
} |
| 127 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 128 |
0
|
public void setClu(Clu clu) {... |
| 129 |
0
|
this.clu = clu; |
| 130 |
|
} |
| 131 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 132 |
0
|
public Date getEffectiveDate() {... |
| 133 |
0
|
return effectiveDate; |
| 134 |
|
} |
| 135 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 136 |
0
|
public void setEffectiveDate(Date effectiveDate) {... |
| 137 |
0
|
this.effectiveDate = effectiveDate; |
| 138 |
|
} |
| 139 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 140 |
0
|
public Date getExpirationDate() {... |
| 141 |
0
|
return expirationDate; |
| 142 |
|
} |
| 143 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 144 |
0
|
public void setExpirationDate(Date expirationDate) {... |
| 145 |
0
|
this.expirationDate = expirationDate; |
| 146 |
|
} |
| 147 |
|
} |