001/** 002 * Copyright 2010 The Kuali Foundation Licensed under the 003 * Educational Community License, Version 2.0 (the "License"); you may 004 * not use this file except in compliance with the License. You may 005 * obtain a copy of the License at 006 * 007 * http://www.osedu.org/licenses/ECL-2.0 008 * 009 * Unless required by applicable law or agreed to in writing, 010 * software distributed under the License is distributed on an "AS IS" 011 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 012 * or implied. See the License for the specific language governing 013 * permissions and limitations under the License. 014 */ 015 016package org.kuali.student.r2.lum.lu.entity; 017 018import java.util.List; 019 020import javax.persistence.CascadeType; 021import javax.persistence.Column; 022import javax.persistence.Entity; 023import javax.persistence.OneToMany; 024import javax.persistence.Table; 025 026import org.kuali.student.r1.common.entity.AttributeOwner; 027import org.kuali.student.r1.common.entity.BaseEntity; 028 029@Entity 030@Table(name = "KSLU_CLU_IDENT") 031public class CluIdentifier extends BaseEntity implements AttributeOwner<CluIdentifierAttribute> { 032 033 @Column(name = "CD") 034 private String code; 035 036 @Column(name = "SHRT_NAME") 037 private String shortName; 038 039 @Column(name = "LNG_NAME") 040 private String longName; 041 042 @Column(name = "LVL") 043 private String level; 044 045 @Column(name = "DIVISION") 046 private String division; 047 048 @Column(name = "VARTN") 049 private String variation; 050 051 @Column(name = "SUFX_CD") 052 private String suffixCode; 053 054 @Column(name = "ORG_ID") 055 private String orgId; 056 057 @Column(name = "TYPE") 058 private String type; 059 060 @Column(name = "ST") 061 private String state; 062 063 @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner") 064 private List<CluIdentifierAttribute> attributes; 065 066 public String getCode() { 067 return code; 068 } 069 070 public void setCode(String code) { 071 this.code = code; 072 } 073 074 public String getShortName() { 075 return shortName; 076 } 077 078 public void setShortName(String shortName) { 079 this.shortName = shortName; 080 } 081 082 public String getLongName() { 083 return longName; 084 } 085 086 public void setLongName(String longName) { 087 this.longName = longName; 088 } 089 090 public String getLevel() { 091 return level; 092 } 093 094 public void setLevel(String level) { 095 this.level = level; 096 } 097 098 public String getDivision() { 099 return division; 100 } 101 102 public void setDivision(String division) { 103 this.division = division; 104 } 105 106 public String getVariation() { 107 return variation; 108 } 109 110 public void setVariation(String variation) { 111 this.variation = variation; 112 } 113 114 public String getType() { 115 return type; 116 } 117 118 public void setType(String type) { 119 this.type = type; 120 } 121 122 public String getState() { 123 return state; 124 } 125 126 public void setState(String state) { 127 this.state = state; 128 } 129 130 public String getSuffixCode() { 131 return suffixCode; 132 } 133 134 public void setSuffixCode(String suffixCode) { 135 this.suffixCode = suffixCode; 136 } 137 138 public String getOrgId() { 139 return orgId; 140 } 141 142 public void setOrgId(String orgId) { 143 this.orgId = orgId; 144 } 145 146 public List<CluIdentifierAttribute> getAttributes() { 147 return attributes; 148 } 149 150 public void setAttributes(List<CluIdentifierAttribute> attributes) { 151 this.attributes = attributes; 152 } 153}