| 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.common.entity.AttributeOwner; | 
  | 32 |  |  import org.kuali.student.common.entity.MetaEntity; | 
  | 33 |  |   | 
  | 34 |  |  @Entity | 
  | 35 |  |  @Table(name = "KSLR_SCALE") | 
  | 36 | 0 |  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 |  |   | 
  | 58 |  |   | 
  | 59 |  |      public String getName() { | 
  | 60 | 0 |          return name; | 
  | 61 |  |      } | 
  | 62 |  |   | 
  | 63 |  |       | 
  | 64 |  |   | 
  | 65 |  |   | 
  | 66 |  |      public void setName(String name) { | 
  | 67 | 0 |          this.name = name; | 
  | 68 | 0 |      } | 
  | 69 |  |   | 
  | 70 |  |       | 
  | 71 |  |   | 
  | 72 |  |   | 
  | 73 |  |      public LrcRichText getDesc() { | 
  | 74 | 0 |          return descr; | 
  | 75 |  |      } | 
  | 76 |  |   | 
  | 77 |  |       | 
  | 78 |  |   | 
  | 79 |  |   | 
  | 80 |  |      public void setDesc(LrcRichText descr) { | 
  | 81 | 0 |          this.descr = descr; | 
  | 82 | 0 |      } | 
  | 83 |  |   | 
  | 84 |  |       | 
  | 85 |  |   | 
  | 86 |  |   | 
  | 87 |  |      public Date getEffectiveDate() { | 
  | 88 | 0 |          return effectiveDate; | 
  | 89 |  |      } | 
  | 90 |  |   | 
  | 91 |  |       | 
  | 92 |  |   | 
  | 93 |  |   | 
  | 94 |  |      public void setEffectiveDate(Date effectiveDate) { | 
  | 95 | 0 |          this.effectiveDate = effectiveDate; | 
  | 96 | 0 |      } | 
  | 97 |  |   | 
  | 98 |  |       | 
  | 99 |  |   | 
  | 100 |  |   | 
  | 101 |  |      public Date getExpirationDate() { | 
  | 102 | 0 |          return expirationDate; | 
  | 103 |  |      } | 
  | 104 |  |   | 
  | 105 |  |       | 
  | 106 |  |   | 
  | 107 |  |   | 
  | 108 |  |      public void setExpirationDate(Date expirationDate) { | 
  | 109 | 0 |          this.expirationDate = expirationDate; | 
  | 110 | 0 |      } | 
  | 111 |  |   | 
  | 112 |  |      @Override | 
  | 113 |  |      public List<ScaleAttribute> getAttributes() { | 
  | 114 | 0 |          return attributes; | 
  | 115 |  |      } | 
  | 116 |  |   | 
  | 117 |  |      @Override | 
  | 118 |  |      public void setAttributes(List<ScaleAttribute> attributes) { | 
  | 119 | 0 |          this.attributes = attributes; | 
  | 120 | 0 |      } | 
  | 121 |  |   | 
  | 122 |  |  } |