| 1 |  |   | 
  | 2 |  |   | 
  | 3 |  |   | 
  | 4 |  |   | 
  | 5 |  |   | 
  | 6 |  |   | 
  | 7 |  |   | 
  | 8 |  |   | 
  | 9 |  |   | 
  | 10 |  |   | 
  | 11 |  |   | 
  | 12 |  |   | 
  | 13 |  |   | 
  | 14 |  |   | 
  | 15 |  |   | 
  | 16 |  |  package org.kuali.student.lum.lo.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 = "KSLO_LO_RELTN") | 
  | 36 | 593 |  public class LoLoRelation extends MetaEntity implements AttributeOwner<LoLoRelationAttribute> { | 
  | 37 |  |           | 
  | 38 |  |          @ManyToOne | 
  | 39 |  |          @JoinColumn(name="LO_ID") | 
  | 40 |  |          private Lo lo; | 
  | 41 |  |           | 
  | 42 |  |          @ManyToOne | 
  | 43 |  |          @JoinColumn(name="RELATED_LO_ID") | 
  | 44 |  |          private Lo relatedLo; | 
  | 45 |  |           | 
  | 46 |  |          @ManyToOne | 
  | 47 |  |          @JoinColumn(name="LO_LO_RELATION_TYPE_ID") | 
  | 48 |  |          private LoLoRelationType loLoRelationType; | 
  | 49 |  |           | 
  | 50 |  |          @Column(name = "ST") | 
  | 51 |  |          private String state; | 
  | 52 |  |           | 
  | 53 |  |          @Temporal(TemporalType.TIMESTAMP) | 
  | 54 |  |          @Column(name = "EFF_DT") | 
  | 55 |  |          private Date effectiveDate; | 
  | 56 |  |   | 
  | 57 |  |          @Temporal(TemporalType.TIMESTAMP) | 
  | 58 |  |          @Column(name = "EXPIR_DT") | 
  | 59 |  |          private Date expirationDate; | 
  | 60 |  |   | 
  | 61 |  |          @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner") | 
  | 62 |  |          private List<LoLoRelationAttribute> attributes; | 
  | 63 |  |   | 
  | 64 |  |          public void setLo(Lo lo) { | 
  | 65 | 1108 |                  this.lo = lo; | 
  | 66 | 1108 |          } | 
  | 67 |  |   | 
  | 68 |  |          public Lo getLo() { | 
  | 69 | 623 |                  return lo; | 
  | 70 |  |          } | 
  | 71 |  |   | 
  | 72 |  |          public void setRelatedLo(Lo relatedLo) { | 
  | 73 | 1108 |                  this.relatedLo = relatedLo; | 
  | 74 | 1108 |          } | 
  | 75 |  |   | 
  | 76 |  |          public Lo getRelatedLo() { | 
  | 77 | 623 |                  return relatedLo; | 
  | 78 |  |          } | 
  | 79 |  |   | 
  | 80 |  |           | 
  | 81 |  |   | 
  | 82 |  |   | 
  | 83 |  |          public void setEffectiveDate(Date effectiveDate) { | 
  | 84 | 554 |                  this.effectiveDate = effectiveDate; | 
  | 85 | 554 |          } | 
  | 86 |  |   | 
  | 87 |  |           | 
  | 88 |  |   | 
  | 89 |  |   | 
  | 90 |  |          public Date getEffectiveDate() { | 
  | 91 | 623 |                  return effectiveDate; | 
  | 92 |  |          } | 
  | 93 |  |   | 
  | 94 |  |           | 
  | 95 |  |   | 
  | 96 |  |   | 
  | 97 |  |          public void setExpirationDate(Date expirationDate) { | 
  | 98 | 554 |                  this.expirationDate = expirationDate; | 
  | 99 | 554 |          } | 
  | 100 |  |   | 
  | 101 |  |           | 
  | 102 |  |   | 
  | 103 |  |   | 
  | 104 |  |          public Date getExpirationDate() { | 
  | 105 | 623 |                  return expirationDate; | 
  | 106 |  |          } | 
  | 107 |  |   | 
  | 108 |  |          @Override | 
  | 109 |  |          public List<LoLoRelationAttribute> getAttributes() { | 
  | 110 | 2285 |                  return attributes; | 
  | 111 |  |          } | 
  | 112 |  |   | 
  | 113 |  |          @Override | 
  | 114 |  |          public void setAttributes(List<LoLoRelationAttribute> attributes) { | 
  | 115 | 1108 |                  this.attributes = attributes; | 
  | 116 | 1108 |          } | 
  | 117 |  |   | 
  | 118 |  |          public void setLoLoRelationType(LoLoRelationType loLoRelationType) { | 
  | 119 | 1108 |                  this.loLoRelationType = loLoRelationType; | 
  | 120 | 1108 |          } | 
  | 121 |  |   | 
  | 122 |  |          public LoLoRelationType getLoLoRelationType() { | 
  | 123 | 623 |                  return loLoRelationType; | 
  | 124 |  |          } | 
  | 125 |  |   | 
  | 126 |  |          public void setState(String state) { | 
  | 127 | 554 |                  this.state = state; | 
  | 128 | 554 |          } | 
  | 129 |  |   | 
  | 130 |  |          public String getState() { | 
  | 131 | 623 |                  return state; | 
  | 132 |  |          } | 
  | 133 |  |  } |