| 1 |  |  | 
            
  
    | 2 |  |  | 
            
  
    | 3 |  |  | 
            
  
    | 4 |  |  | 
            
  
    | 5 |  |  | 
            
  
    | 6 |  |  | 
            
  
    | 7 |  |  | 
            
  
    | 8 |  |  | 
            
  
    | 9 |  |  | 
            
  
    | 10 |  |  | 
            
  
    | 11 |  |  | 
            
  
    | 12 |  |  | 
            
  
    | 13 |  |  | 
            
  
    | 14 |  |  | 
            
  
    | 15 |  |  | 
            
  
    | 16 |  | package org.kuali.student.lum.lrc.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.OneToMany; | 
            
  
    | 27 |  | import javax.persistence.Table; | 
            
  
    | 28 |  | import javax.persistence.Temporal; | 
            
  
    | 29 |  | import javax.persistence.TemporalType; | 
            
  
    | 30 |  |  | 
            
  
    | 31 |  | import org.kuali.student.core.entity.AttributeOwner; | 
            
  
    | 32 |  | import org.kuali.student.core.entity.MetaEntity; | 
            
  
    | 33 |  |  | 
            
  
    | 34 |  | @Entity | 
            
  
    | 35 |  | @Table(name = "KSLR_SCALE") | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 20 (20) | Complexity: 10 | Complexity Density: 1 |  | 
  
  
    | 36 |  | public class Scale extends MetaEntity implements AttributeOwner<ScaleAttribute>{ | 
            
  
    | 37 |  |  | 
            
  
    | 38 |  | @Column(name = "NAME") | 
            
  
    | 39 |  | private String name; | 
            
  
    | 40 |  |  | 
            
  
    | 41 |  | @ManyToOne(cascade = CascadeType.ALL) | 
            
  
    | 42 |  | @JoinColumn(name = "RT_DESCR_ID") | 
            
  
    | 43 |  | private LrcRichText descr; | 
            
  
    | 44 |  |  | 
            
  
    | 45 |  | @Temporal(TemporalType.TIMESTAMP) | 
            
  
    | 46 |  | @Column(name = "EFF_DT") | 
            
  
    | 47 |  | private Date effectiveDate; | 
            
  
    | 48 |  |  | 
            
  
    | 49 |  | @Temporal(TemporalType.TIMESTAMP) | 
            
  
    | 50 |  | @Column(name = "EXPIR_DT") | 
            
  
    | 51 |  | private Date expirationDate; | 
            
  
    | 52 |  |  | 
            
  
    | 53 |  | @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner") | 
            
  
    | 54 |  | private List<ScaleAttribute> attributes; | 
            
  
    | 55 |  |  | 
            
  
    | 56 |  |  | 
            
  
    | 57 |  | @return | 
            
  
    | 58 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 59 | 0 |  public String getName() {... | 
            
  
    | 60 | 0 | return name; | 
            
  
    | 61 |  | } | 
            
  
    | 62 |  |  | 
            
  
    | 63 |  |  | 
            
  
    | 64 |  | @param | 
            
  
    | 65 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 66 | 0 |  public void setName(String name) {... | 
            
  
    | 67 | 0 | this.name = name; | 
            
  
    | 68 |  | } | 
            
  
    | 69 |  |  | 
            
  
    | 70 |  |  | 
            
  
    | 71 |  | @return | 
            
  
    | 72 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 73 | 0 |  public LrcRichText getDesc() {... | 
            
  
    | 74 | 0 | return descr; | 
            
  
    | 75 |  | } | 
            
  
    | 76 |  |  | 
            
  
    | 77 |  |  | 
            
  
    | 78 |  | @param | 
            
  
    | 79 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 80 | 0 |  public void setDesc(LrcRichText descr) {... | 
            
  
    | 81 | 0 | this.descr = descr; | 
            
  
    | 82 |  | } | 
            
  
    | 83 |  |  | 
            
  
    | 84 |  |  | 
            
  
    | 85 |  | @return | 
            
  
    | 86 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 87 | 0 |  public Date getEffectiveDate() {... | 
            
  
    | 88 | 0 | return effectiveDate; | 
            
  
    | 89 |  | } | 
            
  
    | 90 |  |  | 
            
  
    | 91 |  |  | 
            
  
    | 92 |  | @param | 
            
  
    | 93 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 94 | 0 |  public void setEffectiveDate(Date effectiveDate) {... | 
            
  
    | 95 | 0 | this.effectiveDate = effectiveDate; | 
            
  
    | 96 |  | } | 
            
  
    | 97 |  |  | 
            
  
    | 98 |  |  | 
            
  
    | 99 |  | @return | 
            
  
    | 100 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 101 | 0 |  public Date getExpirationDate() {... | 
            
  
    | 102 | 0 | return expirationDate; | 
            
  
    | 103 |  | } | 
            
  
    | 104 |  |  | 
            
  
    | 105 |  |  | 
            
  
    | 106 |  | @param | 
            
  
    | 107 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 108 | 0 |  public void setExpirationDate(Date expirationDate) {... | 
            
  
    | 109 | 0 | this.expirationDate = expirationDate; | 
            
  
    | 110 |  | } | 
            
  
    | 111 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 112 | 0 |  @Override... | 
            
  
    | 113 |  | public List<ScaleAttribute> getAttributes() { | 
            
  
    | 114 | 0 | return attributes; | 
            
  
    | 115 |  | } | 
            
  
    | 116 |  |  | 
               
        |  |  | 
           
           |  | 0% | Uncovered Elements: 1 (1) | Complexity: 1 | Complexity Density: 1 |  | 
  
  
    | 117 | 0 |  @Override... | 
            
  
    | 118 |  | public void setAttributes(List<ScaleAttribute> attributes) { | 
            
  
    | 119 | 0 | this.attributes = attributes; | 
            
  
    | 120 |  | } | 
            
  
    | 121 |  |  | 
            
  
    | 122 |  | } |