1 package org.kuali.student.enrollment.class1.lui.model; 2 3 import javax.persistence.Column; 4 import javax.persistence.Entity; 5 import javax.persistence.Id; 6 import javax.persistence.JoinColumn; 7 import javax.persistence.ManyToOne; 8 import javax.persistence.Table; 9 10 import org.kuali.student.common.util.UUIDHelper; 11 12 @Entity 13 @Table(name = "KSEN_LUI_CLUCLU_RELTN") 14 public class LuiCluCluRelationEntity { 15 16 @Id 17 @Column(name = "ID") 18 private String id; 19 20 @ManyToOne 21 @JoinColumn(name = "LUI_ID") 22 private LuiEntity lui; 23 24 @Column(name = "CLUCLU_RELTN_ID", nullable = false) 25 private String clucluRelationId; 26 27 public LuiCluCluRelationEntity() {} 28 29 public LuiCluCluRelationEntity(LuiEntity lui, String clucluRelationId) { 30 this.setId(UUIDHelper.genStringUUID()); 31 this.setClucluRelationId(clucluRelationId); 32 this.setLui(lui); 33 } 34 35 public String getId() { 36 return id; 37 } 38 39 public void setId(String id) { 40 this.id = id; 41 } 42 43 public LuiEntity getLui() { 44 return lui; 45 } 46 47 public void setLui(LuiEntity lui) { 48 this.lui = lui; 49 } 50 51 public String getClucluRelationId() { 52 return clucluRelationId; 53 } 54 55 public void setClucluRelationId(String clucluRelationId) { 56 this.clucluRelationId = clucluRelationId; 57 } 58 59 }