1 package org.kuali.student.r2.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.r1.common.entity.BaseEntity; 11 12 @Entity 13 @Table(name = "KSLU_CLU_PUBL_VARI", uniqueConstraints={@UniqueConstraint(columnNames={"VARI_KEY", "OWNER"})}) 14 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 return key; 28 } 29 30 public void setKey(String key) { 31 this.key = key; 32 } 33 34 public String getValue() { 35 return value; 36 } 37 38 public void setValue(String value) { 39 this.value = value; 40 } 41 42 public CluPublication getOwner() { 43 return owner; 44 } 45 46 public void setOwner(CluPublication owner) { 47 this.owner = owner; 48 } 49 }