1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.student.r2.core.fee.model; |
18 | |
|
19 | |
import org.kuali.student.r2.common.entity.BaseAttributeEntityNew; |
20 | |
import org.kuali.student.r2.common.infc.Attribute; |
21 | |
|
22 | |
import javax.persistence.Entity; |
23 | |
import javax.persistence.JoinColumn; |
24 | |
import javax.persistence.ManyToOne; |
25 | |
import javax.persistence.Table; |
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | 0 | @Entity |
33 | |
@Table(name = "KSEN_ENROLLMENT_FEE_ATTR") |
34 | |
public class EnrollmentFeeAttributeEntity extends BaseAttributeEntityNew<EnrollmentFeeEntity> { |
35 | |
@ManyToOne |
36 | |
@JoinColumn(name = "OWNER_ID") |
37 | |
private EnrollmentFeeEntity owner; |
38 | |
|
39 | 0 | public EnrollmentFeeAttributeEntity() { |
40 | 0 | } |
41 | |
|
42 | |
public EnrollmentFeeAttributeEntity(String key, String value) { |
43 | 0 | super(key, value); |
44 | 0 | } |
45 | |
|
46 | |
public EnrollmentFeeAttributeEntity(Attribute att, EnrollmentFeeEntity owner) { |
47 | 0 | super(att); |
48 | 0 | setOwner(owner); |
49 | 0 | } |
50 | |
|
51 | |
public void setOwner(EnrollmentFeeEntity owner) { |
52 | 0 | this.owner = owner; |
53 | |
|
54 | 0 | } |
55 | |
|
56 | |
public EnrollmentFeeEntity getOwner() { |
57 | 0 | return owner; |
58 | |
} |
59 | |
} |