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.common.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 | 0 | 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 | 0 | return personId; |
50 | |
} |
51 | |
|
52 | |
public void setPersonId(String personId) { |
53 | 0 | this.personId = personId; |
54 | 0 | } |
55 | |
|
56 | |
public Proposal getProposal() { |
57 | 0 | return proposal; |
58 | |
} |
59 | |
|
60 | |
public void setProposal(Proposal proposal) { |
61 | 0 | this.proposal = proposal; |
62 | 0 | } |
63 | |
} |