| 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.Entity; | 
  | 22 |  |  import javax.persistence.JoinColumn; | 
  | 23 |  |  import javax.persistence.JoinTable; | 
  | 24 |  |  import javax.persistence.ManyToMany; | 
  | 25 |  |  import javax.persistence.OneToMany; | 
  | 26 |  |  import javax.persistence.Table; | 
  | 27 |  |   | 
  | 28 |  |  import org.kuali.student.core.entity.AttributeOwner; | 
  | 29 |  |  import org.kuali.student.core.entity.BaseEntity; | 
  | 30 |  |   | 
  | 31 |  |  @Entity | 
  | 32 |  |  @Table(name = "KSLU_CLU_ACCT") | 
  | 33 | 181 |  public class CluAccounting extends BaseEntity implements AttributeOwner<CluAccountingAttribute> { | 
  | 34 |  |       | 
  | 35 |  |          @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner") | 
  | 36 |  |      private List<CluAccountingAttribute> attributes; | 
  | 37 |  |   | 
  | 38 |  |          @ManyToMany(cascade=CascadeType.ALL) | 
  | 39 |  |          @JoinTable(name = "KSLU_CLU_ACCT_JN_AFFIL_ORG", joinColumns = @JoinColumn(name = "CLU_ACCT_ID"), inverseJoinColumns = @JoinColumn(name = "AFFIL_ORG_ID")) | 
  | 40 |  |          private List<AffiliatedOrg> affiliatedOrgs; | 
  | 41 |  |           | 
  | 42 |  |      public List<CluAccountingAttribute> getAttributes() { | 
  | 43 | 221 |          return attributes; | 
  | 44 |  |      } | 
  | 45 |  |   | 
  | 46 |  |      public void setAttributes(List<CluAccountingAttribute> attributes) { | 
  | 47 | 62 |          this.attributes = attributes; | 
  | 48 | 62 |      } | 
  | 49 |  |       | 
  | 50 |  |          public List<AffiliatedOrg> getAffiliatedOrgs() { | 
  | 51 | 149 |                  return this.affiliatedOrgs; | 
  | 52 |  |          } | 
  | 53 |  |   | 
  | 54 |  |          public void setAffiliatedOrgs(List<AffiliatedOrg> affiliatedOrgs) { | 
  | 55 | 36 |                  this.affiliatedOrgs = affiliatedOrgs; | 
  | 56 | 36 |          }         | 
  | 57 |  |  } |