1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.lum.lo.entity; |
17 | |
|
18 | |
import java.util.List; |
19 | |
|
20 | |
import javax.persistence.AttributeOverride; |
21 | |
import javax.persistence.AttributeOverrides; |
22 | |
import javax.persistence.CascadeType; |
23 | |
import javax.persistence.Column; |
24 | |
import javax.persistence.Entity; |
25 | |
import javax.persistence.OneToMany; |
26 | |
import javax.persistence.Table; |
27 | |
|
28 | |
import org.kuali.student.common.entity.Type; |
29 | |
|
30 | |
@Entity |
31 | |
@Table(name = "KSLO_LO_RELTN_TYPE") |
32 | |
@AttributeOverrides({ |
33 | |
@AttributeOverride(name="id", column=@Column(name="ID")), |
34 | |
@AttributeOverride(name="descr", column=@Column(name="DESCR"))}) |
35 | 0 | public class LoLoRelationType extends Type<LoLoRelationTypeAttribute> { |
36 | |
|
37 | |
@Column(name = "REV_NAME") |
38 | |
private String revName; |
39 | |
|
40 | |
@Column(name = "REV_DESCR") |
41 | |
private String revDescription; |
42 | |
|
43 | |
@OneToMany(cascade = CascadeType.ALL, mappedBy = "owner") |
44 | |
private List<LoLoRelationTypeAttribute> attributes; |
45 | |
|
46 | |
|
47 | |
|
48 | |
|
49 | |
public String getRevName() { |
50 | 0 | return revName; |
51 | |
} |
52 | |
|
53 | |
|
54 | |
|
55 | |
|
56 | |
public void setRevName(String revName) { |
57 | 0 | this.revName = revName; |
58 | 0 | } |
59 | |
|
60 | |
|
61 | |
|
62 | |
|
63 | |
public String getRevDescription() { |
64 | 0 | return revDescription; |
65 | |
} |
66 | |
|
67 | |
|
68 | |
|
69 | |
|
70 | |
public void setRevDescription(String revDescription) { |
71 | 0 | this.revDescription = revDescription; |
72 | 0 | } |
73 | |
|
74 | |
@Override |
75 | |
public List<LoLoRelationTypeAttribute> getAttributes() { |
76 | 0 | return attributes; |
77 | |
} |
78 | |
|
79 | |
@Override |
80 | |
public void setAttributes(List<LoLoRelationTypeAttribute> attributes) { |
81 | 0 | this.attributes = attributes; |
82 | 0 | } |
83 | |
} |