1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.enrollment.class1.lpr.model; |
17 | |
|
18 | |
import javax.persistence.Entity; |
19 | |
import javax.persistence.JoinColumn; |
20 | |
import javax.persistence.ManyToOne; |
21 | |
import javax.persistence.Table; |
22 | |
import javax.persistence.UniqueConstraint; |
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
@Entity |
29 | |
@Table(name = "KSEN_LPR_TRANS_ITEM_RVG", uniqueConstraints = { @UniqueConstraint(columnNames = { |
30 | |
"LPR_TRANS_ITEM_ID", "RESULT_VAL_GRP_ID" }) }) |
31 | |
public class LprTransactionItemResultValueGroupEntity extends |
32 | |
AbstractResultValueGroupEntity { |
33 | |
|
34 | |
@ManyToOne |
35 | |
@JoinColumn(name = "LPR_TRANS_ITEM_ID", nullable = false) |
36 | |
private LprTransactionItemEntity lprTransactionItem; |
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
public LprTransactionItemResultValueGroupEntity() { |
42 | 0 | super(); |
43 | 0 | } |
44 | |
|
45 | |
public LprTransactionItemResultValueGroupEntity(String value) { |
46 | 0 | super(value); |
47 | 0 | } |
48 | |
|
49 | |
public LprTransactionItemEntity getLprTransactionItem() { |
50 | 0 | return lprTransactionItem; |
51 | |
} |
52 | |
|
53 | |
public void setLprTransactionItem( |
54 | |
LprTransactionItemEntity lprTransactionItem) { |
55 | 0 | this.lprTransactionItem = lprTransactionItem; |
56 | 0 | } |
57 | |
|
58 | |
@Override |
59 | |
public String toString() { |
60 | 0 | StringBuilder builder = new StringBuilder(); |
61 | 0 | builder.append("LprTransactionItemResultValueGroupEntity [id="); |
62 | 0 | builder.append(getId()); |
63 | 0 | builder.append(", resultValueGroupId="); |
64 | 0 | builder.append(getResultValueGroupId()); |
65 | 0 | builder.append("]"); |
66 | 0 | return builder.toString(); |
67 | |
} |
68 | |
|
69 | |
|
70 | |
} |