1 | |
package org.kuali.student.r2.common.entity; |
2 | |
|
3 | |
import javax.persistence.Entity; |
4 | |
import javax.persistence.JoinColumn; |
5 | |
import javax.persistence.ManyToOne; |
6 | |
import javax.persistence.Table; |
7 | |
|
8 | |
import org.kuali.student.r2.common.infc.Attribute; |
9 | |
|
10 | 0 | @Entity |
11 | |
@Table(name = "KSEN_ATPATP_RELTN_ATTR") |
12 | |
public class TypeTypeRelationAttributeEntity extends BaseAttributeEntity<TypeTypeRelationEntity> { |
13 | |
|
14 | |
@ManyToOne |
15 | |
@JoinColumn(name = "OWNER") |
16 | |
private TypeTypeRelationEntity owner; |
17 | |
|
18 | 0 | public TypeTypeRelationAttributeEntity(){} |
19 | |
|
20 | |
public TypeTypeRelationAttributeEntity(Attribute att) { |
21 | 0 | super(att); |
22 | 0 | } |
23 | |
|
24 | |
public TypeTypeRelationAttributeEntity(String key, String value) { |
25 | 0 | super(key, value); |
26 | 0 | } |
27 | |
|
28 | |
@Override |
29 | |
public void setOwner(TypeTypeRelationEntity owner) { |
30 | 0 | this.owner = owner; |
31 | 0 | } |
32 | |
|
33 | |
@Override |
34 | |
public TypeTypeRelationEntity getOwner() { |
35 | 0 | return owner; |
36 | |
} |
37 | |
} |