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 super();
43 }
44
45 public LprTransactionItemResultValueGroupEntity(String value) {
46 super(value);
47 }
48
49 public LprTransactionItemEntity getLprTransactionItem() {
50 return lprTransactionItem;
51 }
52
53 public void setLprTransactionItem(
54 LprTransactionItemEntity lprTransactionItem) {
55 this.lprTransactionItem = lprTransactionItem;
56 }
57
58 @Override
59 public String toString() {
60 StringBuilder builder = new StringBuilder();
61 builder.append("LprTransactionItemResultValueGroupEntity [id=");
62 builder.append(getId());
63 builder.append(", resultValueGroupId=");
64 builder.append(getResultValueGroupId());
65 builder.append("]");
66 return builder.toString();
67 }
68
69
70 }