1 | |
package org.kuali.student.lum.lu.entity; |
2 | |
|
3 | |
import javax.persistence.Column; |
4 | |
import javax.persistence.Entity; |
5 | |
import javax.persistence.JoinColumn; |
6 | |
import javax.persistence.ManyToOne; |
7 | |
import javax.persistence.Table; |
8 | |
import javax.persistence.UniqueConstraint; |
9 | |
|
10 | |
import org.kuali.student.common.entity.BaseEntity; |
11 | |
|
12 | |
@Entity |
13 | |
@Table(name = "KSLU_CLU_PUBL_VARI", uniqueConstraints={@UniqueConstraint(columnNames={"VARI_KEY", "OWNER"})}) |
14 | 108 | public class CluPublicationVariant extends BaseEntity{ |
15 | |
|
16 | |
@Column(name="VARI_KEY") |
17 | |
private String key; |
18 | |
|
19 | |
@Column(name="VARI_VALUE") |
20 | |
private String value; |
21 | |
|
22 | |
@ManyToOne |
23 | |
@JoinColumn(name = "OWNER") |
24 | |
private CluPublication owner; |
25 | |
|
26 | |
public String getKey() { |
27 | 179 | return key; |
28 | |
} |
29 | |
|
30 | |
public void setKey(String key) { |
31 | 30 | this.key = key; |
32 | 30 | } |
33 | |
|
34 | |
public String getValue() { |
35 | 160 | return value; |
36 | |
} |
37 | |
|
38 | |
public void setValue(String value) { |
39 | 49 | this.value = value; |
40 | 49 | } |
41 | |
|
42 | |
public CluPublication getOwner() { |
43 | 0 | return owner; |
44 | |
} |
45 | |
|
46 | |
public void setOwner(CluPublication owner) { |
47 | 30 | this.owner = owner; |
48 | 30 | } |
49 | |
} |