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.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 | |
|
30 | |
|
31 | |
|
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 | 11 | public class ProposalPerson extends BaseEntity { |
40 | |
|
41 | |
@Column(name = "PERSONREF_ID") |
42 | |
private String personId; |
43 | |
|
44 | |
@ManyToOne |
45 | |
@JoinColumn(name = "PROPOSAL_ID") |
46 | |
private Proposal proposal; |
47 | |
|
48 | |
public String getPersonId() { |
49 | 9 | return personId; |
50 | |
} |
51 | |
|
52 | |
public void setPersonId(String personId) { |
53 | 2 | this.personId = personId; |
54 | 2 | } |
55 | |
|
56 | |
public Proposal getProposal() { |
57 | 0 | return proposal; |
58 | |
} |
59 | |
|
60 | |
public void setProposal(Proposal proposal) { |
61 | 2 | this.proposal = proposal; |
62 | 2 | } |
63 | |
} |