| 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_LUI") |
| 38 |
|
@NamedQueries({ |
| 39 |
|
@NamedQuery(name="Lui.getLuisByIdList", query="SELECT l FROM Lui l WHERE l.id IN (:luiIdList)"), |
| 40 |
|
@NamedQuery(name="Lui.getLuiIdsByCluId", query="SELECT l.id FROM Lui l WHERE l.clu.id = :cluId"), |
| 41 |
|
@NamedQuery(name="Lui.getLuiIdsInAtpByCluId", query="SELECT l.id FROM Lui l WHERE l.clu.id = :cluId AND l.atpId = :atpKey") |
| 42 |
|
}) |
|
|
|
| 0% |
Uncovered Elements: 32 (32) |
Complexity: 16 |
Complexity Density: 1 |
|
| 43 |
|
public class Lui extends MetaEntity implements AttributeOwner<LuiAttribute> { |
| 44 |
|
|
| 45 |
|
@OneToMany(cascade = CascadeType.ALL, mappedBy = "owner") |
| 46 |
|
private List<LuiAttribute> attributes; |
| 47 |
|
|
| 48 |
|
@ManyToOne |
| 49 |
|
@JoinColumn(name = "CLU_ID") |
| 50 |
|
private Clu clu; |
| 51 |
|
|
| 52 |
|
@Column(name = "ATP_ID") |
| 53 |
|
private String atpId; |
| 54 |
|
|
| 55 |
|
@Column(name = "LUI_CODE") |
| 56 |
|
private String luiCode; |
| 57 |
|
|
| 58 |
|
@Column(name = "MAX_SEATS") |
| 59 |
|
private Integer maxSeats; |
| 60 |
|
|
| 61 |
|
@Temporal(TemporalType.TIMESTAMP) |
| 62 |
|
@Column(name = "EFF_DT") |
| 63 |
|
private Date effectiveDate; |
| 64 |
|
|
| 65 |
|
@Temporal(TemporalType.TIMESTAMP) |
| 66 |
|
@Column(name = "EXP_DT") |
| 67 |
|
private Date expirationDate; |
| 68 |
|
|
| 69 |
|
@Column(name = "ST") |
| 70 |
|
private String state; |
| 71 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 72 |
0
|
@Override... |
| 73 |
|
public List<LuiAttribute> getAttributes() { |
| 74 |
0
|
return attributes; |
| 75 |
|
} |
| 76 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 77 |
0
|
@Override... |
| 78 |
|
public void setAttributes(List<LuiAttribute> attributes) { |
| 79 |
0
|
this.attributes = attributes; |
| 80 |
|
} |
| 81 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 82 |
0
|
public Clu getClu() {... |
| 83 |
0
|
return clu; |
| 84 |
|
} |
| 85 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 86 |
0
|
public void setClu(Clu clu) {... |
| 87 |
0
|
this.clu = clu; |
| 88 |
|
} |
| 89 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 90 |
0
|
public String getAtpId() {... |
| 91 |
0
|
return atpId; |
| 92 |
|
} |
| 93 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 94 |
0
|
public void setAtpId(String atpId) {... |
| 95 |
0
|
this.atpId = atpId; |
| 96 |
|
} |
| 97 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 98 |
0
|
public String getLuiCode() {... |
| 99 |
0
|
return luiCode; |
| 100 |
|
} |
| 101 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 102 |
0
|
public void setLuiCode(String luiCode) {... |
| 103 |
0
|
this.luiCode = luiCode; |
| 104 |
|
} |
| 105 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 106 |
0
|
public Integer getMaxSeats() {... |
| 107 |
0
|
return maxSeats; |
| 108 |
|
} |
| 109 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 110 |
0
|
public void setMaxSeats(Integer maxSeats) {... |
| 111 |
0
|
this.maxSeats = maxSeats; |
| 112 |
|
} |
| 113 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 114 |
0
|
public Date getEffectiveDate() {... |
| 115 |
0
|
return effectiveDate; |
| 116 |
|
} |
| 117 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 118 |
0
|
public void setEffectiveDate(Date effectiveDate) {... |
| 119 |
0
|
this.effectiveDate = effectiveDate; |
| 120 |
|
} |
| 121 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 122 |
0
|
public Date getExpirationDate() {... |
| 123 |
0
|
return expirationDate; |
| 124 |
|
} |
| 125 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 126 |
0
|
public void setExpirationDate(Date expirationDate) {... |
| 127 |
0
|
this.expirationDate = expirationDate; |
| 128 |
|
} |
| 129 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 130 |
0
|
public String getState() {... |
| 131 |
0
|
return state; |
| 132 |
|
} |
| 133 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 134 |
0
|
public void setState(String state) {... |
| 135 |
0
|
this.state = state; |
| 136 |
|
} |
| 137 |
|
|
| 138 |
|
} |