| 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.OneToMany; | 
  | 25 |  |  import javax.persistence.Table; | 
  | 26 |  |  import javax.persistence.Temporal; | 
  | 27 |  |  import javax.persistence.TemporalType; | 
  | 28 |  |   | 
  | 29 |  |  import org.kuali.student.core.entity.AttributeOwner; | 
  | 30 |  |  import org.kuali.student.core.entity.MetaEntity; | 
  | 31 |  |   | 
  | 32 |  |   | 
  | 33 |  |   | 
  | 34 |  |   | 
  | 35 |  |   | 
  | 36 |  |   | 
  | 37 |  |   | 
  | 38 |  |   | 
  | 39 |  |   | 
  | 40 |  |  @Entity | 
  | 41 |  |  @Table(name = "KSLU_CLU_ACCRED") | 
  | 42 | 61 |  public class CluAccreditation extends MetaEntity implements | 
  | 43 |  |                  AttributeOwner<CluAccreditationAttribute> { | 
  | 44 |  |   | 
  | 45 |  |          @Column(name = "ORG_ID") | 
  | 46 |  |          private String orgId; | 
  | 47 |  |   | 
  | 48 |  |          @Temporal(TemporalType.TIMESTAMP) | 
  | 49 |  |          @Column(name = "EFF_DT") | 
  | 50 |  |          private Date effectiveDate; | 
  | 51 |  |   | 
  | 52 |  |          @Temporal(TemporalType.TIMESTAMP) | 
  | 53 |  |          @Column(name = "EXPIR_DT") | 
  | 54 |  |          private Date expirationDate; | 
  | 55 |  |           | 
  | 56 |  |          @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner") | 
  | 57 |  |          private List<CluAccreditationAttribute> attributes; | 
  | 58 |  |   | 
  | 59 |  |          public List<CluAccreditationAttribute> getAttributes() { | 
  | 60 | 166 |                  return attributes; | 
  | 61 |  |          } | 
  | 62 |  |   | 
  | 63 |  |          public void setAttributes(List<CluAccreditationAttribute> attributes) { | 
  | 64 | 51 |                  this.attributes = attributes; | 
  | 65 | 51 |          } | 
  | 66 |  |   | 
  | 67 |  |          public String getOrgId() { | 
  | 68 | 73 |                  return orgId; | 
  | 69 |  |          } | 
  | 70 |  |   | 
  | 71 |  |          public void setOrgId(String orgId) { | 
  | 72 | 31 |                  this.orgId = orgId; | 
  | 73 | 31 |          } | 
  | 74 |  |   | 
  | 75 |  |          public Date getEffectiveDate() { | 
  | 76 | 73 |                  return effectiveDate; | 
  | 77 |  |          } | 
  | 78 |  |   | 
  | 79 |  |          public void setEffectiveDate(Date effectiveDate) { | 
  | 80 | 31 |                  this.effectiveDate = effectiveDate; | 
  | 81 | 31 |          } | 
  | 82 |  |   | 
  | 83 |  |          public Date getExpirationDate() { | 
  | 84 | 73 |                  return expirationDate; | 
  | 85 |  |          } | 
  | 86 |  |   | 
  | 87 |  |          public void setExpirationDate(Date expirationDate) { | 
  | 88 | 31 |                  this.expirationDate = expirationDate; | 
  | 89 | 31 |          } | 
  | 90 |  |   | 
  | 91 |  |  } |