| 1 |  |   | 
  | 2 |  |   | 
  | 3 |  |   | 
  | 4 |  |   | 
  | 5 |  |   | 
  | 6 |  |   | 
  | 7 |  |   | 
  | 8 |  |   | 
  | 9 |  |   | 
  | 10 |  |   | 
  | 11 |  |   | 
  | 12 |  |   | 
  | 13 |  |   | 
  | 14 |  |   | 
  | 15 |  |   | 
  | 16 |  |  package org.kuali.student.core.proposal.entity; | 
  | 17 |  |   | 
  | 18 |  |  import javax.persistence.AttributeOverride; | 
  | 19 |  |  import javax.persistence.Column; | 
  | 20 |  |  import javax.persistence.Entity; | 
  | 21 |  |  import javax.persistence.JoinColumn; | 
  | 22 |  |  import javax.persistence.ManyToOne; | 
  | 23 |  |  import javax.persistence.NamedQueries; | 
  | 24 |  |  import javax.persistence.NamedQuery; | 
  | 25 |  |  import javax.persistence.Table; | 
  | 26 |  |   | 
  | 27 |  |  import org.kuali.student.common.entity.BaseEntity; | 
  | 28 |  |   | 
  | 29 |  |   | 
  | 30 |  |   | 
  | 31 |  |   | 
  | 32 |  |   | 
  | 33 |  |   | 
  | 34 |  |   | 
  | 35 |  |  @Entity | 
  | 36 |  |  @Table(name = "KSPR_PROPOSAL_JN_ORG") | 
  | 37 |  |  @NamedQueries( { | 
  | 38 |  |      @NamedQuery(name = "ProposalOrg.getProposalOrg", query = "SELECT p FROM ProposalOrg p WHERE p.orgId = :orgId") | 
  | 39 |  |  }) | 
  | 40 |  |  @AttributeOverride(name="id", column=@Column(name="ORGREF_ID")) | 
  | 41 | 10 |  public class ProposalOrg extends BaseEntity{ | 
  | 42 |  |   | 
  | 43 |  |      @Column(name = "ORG_ID") | 
  | 44 |  |      private String orgId;  | 
  | 45 |  |   | 
  | 46 |  |      @ManyToOne | 
  | 47 |  |      @JoinColumn(name = "PROPOSAL_ID") | 
  | 48 |  |      private Proposal proposal; | 
  | 49 |  |   | 
  | 50 |  |      public String getOrgId() { | 
  | 51 | 10 |          return orgId; | 
  | 52 |  |      } | 
  | 53 |  |   | 
  | 54 |  |      public void setOrgId(String orgId) { | 
  | 55 | 4 |          this.orgId = orgId; | 
  | 56 | 4 |      } | 
  | 57 |  |   | 
  | 58 |  |      public Proposal getProposal() { | 
  | 59 | 0 |          return proposal; | 
  | 60 |  |      } | 
  | 61 |  |   | 
  | 62 |  |      public void setProposal(Proposal proposal) { | 
  | 63 | 4 |          this.proposal = proposal; | 
  | 64 | 4 |      } | 
  | 65 |  |  } |