| 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.List; | 
  | 19 |  |   | 
  | 20 |  |  import javax.persistence.CascadeType; | 
  | 21 |  |  import javax.persistence.Column; | 
  | 22 |  |  import javax.persistence.Entity; | 
  | 23 |  |  import javax.persistence.JoinColumn; | 
  | 24 |  |  import javax.persistence.ManyToOne; | 
  | 25 |  |  import javax.persistence.OneToMany; | 
  | 26 |  |  import javax.persistence.Table; | 
  | 27 |  |   | 
  | 28 |  |  import org.kuali.student.common.entity.AttributeOwner; | 
  | 29 |  |  import org.kuali.student.common.entity.BaseEntity; | 
  | 30 |  |   | 
  | 31 |  |   | 
  | 32 |  |   | 
  | 33 |  |   | 
  | 34 |  |   | 
  | 35 |  |   | 
  | 36 |  |   | 
  | 37 |  |   | 
  | 38 |  |  @Entity | 
  | 39 |  |  @Table(name = "KSLU_CLU_ADMIN_ORG") | 
  | 40 |  |   | 
  | 41 | 2443 |  public class CluAdminOrg extends BaseEntity implements AttributeOwner<CluAdminOrgAttribute>  { | 
  | 42 |  |       | 
  | 43 |  |      @Column(name = "ORG_ID") | 
  | 44 |  |      private String orgId; | 
  | 45 |  |       | 
  | 46 |  |      @Column(name = "TYPE") | 
  | 47 |  |      private String type; | 
  | 48 |  |       | 
  | 49 | 2443 |      @Column(name = "IS_PR") | 
  | 50 |  |      private boolean isPrimary=false; | 
  | 51 |  |       | 
  | 52 |  |      @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner") | 
  | 53 |  |      private List<CluAdminOrgAttribute> attributes; | 
  | 54 |  |   | 
  | 55 |  |      @ManyToOne | 
  | 56 |  |      @JoinColumn(name="CLU_ID") | 
  | 57 |  |      private Clu clu; | 
  | 58 |  |       | 
  | 59 |  |      public String getOrgId() { | 
  | 60 | 2412 |          return orgId; | 
  | 61 |  |      } | 
  | 62 |  |   | 
  | 63 |  |      public void setOrgId(String orgId) { | 
  | 64 | 896 |          this.orgId = orgId; | 
  | 65 | 896 |      } | 
  | 66 |  |   | 
  | 67 |  |       | 
  | 68 |  |      public List<CluAdminOrgAttribute> getAttributes() { | 
  | 69 | 5100 |          return attributes; | 
  | 70 |  |      } | 
  | 71 |  |   | 
  | 72 |  |      public void setAttributes(List<CluAdminOrgAttribute> attributes) { | 
  | 73 | 1790 |          this.attributes = attributes; | 
  | 74 | 1790 |      } | 
  | 75 |  |       | 
  | 76 |  |          public String getType() { | 
  | 77 | 2412 |                  return type; | 
  | 78 |  |          } | 
  | 79 |  |   | 
  | 80 |  |          public void setType(String type) { | 
  | 81 | 896 |                  this.type = type; | 
  | 82 | 896 |          } | 
  | 83 |  |   | 
  | 84 |  |          public boolean isPrimary() { | 
  | 85 | 2412 |                  return isPrimary; | 
  | 86 |  |          } | 
  | 87 |  |   | 
  | 88 |  |          public void setPrimary(boolean isPrimary) { | 
  | 89 | 896 |                  this.isPrimary = isPrimary; | 
  | 90 | 896 |          } | 
  | 91 |  |   | 
  | 92 |  |          public Clu getClu() { | 
  | 93 | 0 |                  return clu; | 
  | 94 |  |          } | 
  | 95 |  |   | 
  | 96 |  |          public void setClu(Clu clu) { | 
  | 97 | 896 |                  this.clu = clu; | 
  | 98 | 896 |          } | 
  | 99 |  |   | 
  | 100 |  |  } |