001 package org.kuali.student.enrollment.class1.lui.model; 002 003 import javax.persistence.Column; 004 import javax.persistence.Entity; 005 import javax.persistence.Id; 006 import javax.persistence.JoinColumn; 007 import javax.persistence.ManyToOne; 008 import javax.persistence.Table; 009 010 import org.kuali.student.common.util.UUIDHelper; 011 012 @Entity 013 @Table(name = "KSEN_LUI_CLUCLU_RELTN") 014 public class LuiCluCluRelationEntity { 015 016 @Id 017 @Column(name = "ID") 018 private String id; 019 020 @ManyToOne 021 @JoinColumn(name = "LUI_ID") 022 private LuiEntity lui; 023 024 @Column(name = "CLUCLU_RELTN_ID", nullable = false) 025 private String clucluRelationId; 026 027 public LuiCluCluRelationEntity() {} 028 029 public LuiCluCluRelationEntity(LuiEntity lui, String clucluRelationId) { 030 this.setId(UUIDHelper.genStringUUID()); 031 this.setClucluRelationId(clucluRelationId); 032 this.setLui(lui); 033 } 034 035 public String getId() { 036 return id; 037 } 038 039 public void setId(String id) { 040 this.id = id; 041 } 042 043 public LuiEntity getLui() { 044 return lui; 045 } 046 047 public void setLui(LuiEntity lui) { 048 this.lui = lui; 049 } 050 051 public String getClucluRelationId() { 052 return clucluRelationId; 053 } 054 055 public void setClucluRelationId(String clucluRelationId) { 056 this.clucluRelationId = clucluRelationId; 057 } 058 059 }