001/** 002 * Copyright 2005-2016 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.rice.krad.bo; 017 018import org.hibernate.annotations.Type; 019 020import javax.persistence.Column; 021import javax.persistence.Entity; 022import javax.persistence.Id; 023import javax.persistence.Table; 024 025 026/** 027 * 028 */ 029@Entity 030@Table(name="KRNS_NTE_TYP_T") 031public class NoteType extends PersistableBusinessObjectBase { 032 033 @Id 034 @Column(name="NTE_TYP_CD") 035 private String noteTypeCode; 036 @Column(name="TYP_DESC_TXT") 037 private String noteTypeDescription; 038 @Type(type="yes_no") 039 @Column(name="ACTV_IND") 040 private boolean noteTypeActiveIndicator; 041 042 /** 043 * Default constructor. 044 */ 045 public NoteType() { 046 047 } 048 049 /** 050 * Gets the noteTypeCode attribute. 051 * 052 * @return Returns the noteTypeCode 053 * 054 */ 055 public String getNoteTypeCode() { 056 return noteTypeCode; 057 } 058 059 /** 060 * Sets the noteTypeCode attribute. 061 * 062 * @param noteTypeCode The noteTypeCode to set. 063 * 064 */ 065 public void setNoteTypeCode(String noteTypeCode) { 066 this.noteTypeCode = noteTypeCode; 067 } 068 069 070 /** 071 * Gets the noteTypeDescription attribute. 072 * 073 * @return Returns the noteTypeDescription 074 * 075 */ 076 public String getNoteTypeDescription() { 077 return noteTypeDescription; 078 } 079 080 /** 081 * Sets the noteTypeDescription attribute. 082 * 083 * @param noteTypeDescription The noteTypeDescription to set. 084 * 085 */ 086 public void setNoteTypeDescription(String noteTypeDescription) { 087 this.noteTypeDescription = noteTypeDescription; 088 } 089 090 091 /** 092 * Gets the noteTypeActiveIndicator attribute. 093 * 094 * @return Returns the noteTypeActiveIndicator 095 * 096 */ 097 public boolean isNoteTypeActiveIndicator() { 098 return noteTypeActiveIndicator; 099 } 100 101 102 /** 103 * Sets the noteTypeActiveIndicator attribute. 104 * 105 * @param noteTypeActiveIndicator The noteTypeActiveIndicator to set. 106 * 107 */ 108 public void setNoteTypeActiveIndicator(boolean noteTypeActiveIndicator) { 109 this.noteTypeActiveIndicator = noteTypeActiveIndicator; 110 } 111} 112