View Javadoc

1   /**
2    * Copyright 2010 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10   * software distributed under the License is distributed on an "AS IS"
11   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12   * or implied. See the License for the specific language governing
13   * permissions and limitations under the License.
14   */
15  
16  package org.kuali.student.core.proposal.entity;
17  
18  import javax.persistence.Column;
19  import javax.persistence.Entity;
20  import javax.persistence.JoinColumn;
21  import javax.persistence.ManyToOne;
22  import javax.persistence.NamedQueries;
23  import javax.persistence.NamedQuery;
24  import javax.persistence.Table;
25  
26  import org.kuali.student.core.entity.BaseEntity;
27  
28  /**
29   * This is a description of what this class does - lindholm don't forget to fill this in.
30   *
31   * @author Kuali Rice Team (kuali-rice@googlegroups.com)
32   *
33   */
34  @Entity
35  @Table(name = "KSPR_PROPOSAL_JN_PERSON")
36  @NamedQueries( {
37      @NamedQuery(name = "ProposalPerson.getProposalPerson", query = "SELECT p FROM ProposalPerson p WHERE p.personId = :proposerId")
38  })
39  public class ProposalPerson extends BaseEntity {
40  
41      @Column(name = "PERSONREF_ID")
42      private String personId; // External service key
43  
44      @ManyToOne
45      @JoinColumn(name = "PROPOSAL_ID")
46      private Proposal proposal;
47  
48      public String getPersonId() {
49          return personId;
50      }
51  
52      public void setPersonId(String personId) {
53          this.personId = personId;
54      }
55  
56      public Proposal getProposal() {
57          return proposal;
58      }
59  
60      public void setProposal(Proposal proposal) {
61          this.proposal = proposal;
62      }
63  }