| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| NoteType |
|
| 1.0;1 |
| 1 | /** | |
| 2 | * Copyright 2005-2011 The Kuali Foundation | |
| 3 | * | |
| 4 | * Licensed under the Educational Community License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.opensource.org/licenses/ecl2.php | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 16 | package org.kuali.rice.krad.bo; | |
| 17 | ||
| 18 | import org.hibernate.annotations.Type; | |
| 19 | ||
| 20 | import javax.persistence.Column; | |
| 21 | import javax.persistence.Entity; | |
| 22 | import javax.persistence.Id; | |
| 23 | import javax.persistence.Table; | |
| 24 | ||
| 25 | ||
| 26 | /** | |
| 27 | * | |
| 28 | */ | |
| 29 | @Entity | |
| 30 | @Table(name="KRNS_NTE_TYP_T") | |
| 31 | public class NoteType extends PersistableBusinessObjectBase { | |
| 32 | ||
| 33 | @Id | |
| 34 | @Column(name="NTE_TYP_CD") | |
| 35 | private String noteTypeCode; | |
| 36 | @Column(name="TYP_DESC_TXT") | |
| 37 | private String noteTypeDescription; | |
| 38 | @Type(type="yes_no") | |
| 39 | @Column(name="ACTV_IND") | |
| 40 | private boolean noteTypeActiveIndicator; | |
| 41 | ||
| 42 | /** | |
| 43 | * Default constructor. | |
| 44 | */ | |
| 45 | 0 | public NoteType() { |
| 46 | ||
| 47 | 0 | } |
| 48 | ||
| 49 | /** | |
| 50 | * Gets the noteTypeCode attribute. | |
| 51 | * | |
| 52 | * @return Returns the noteTypeCode | |
| 53 | * | |
| 54 | */ | |
| 55 | public String getNoteTypeCode() { | |
| 56 | 0 | return noteTypeCode; |
| 57 | } | |
| 58 | ||
| 59 | /** | |
| 60 | * Sets the noteTypeCode attribute. | |
| 61 | * | |
| 62 | * @param noteTypeCode The noteTypeCode to set. | |
| 63 | * | |
| 64 | */ | |
| 65 | public void setNoteTypeCode(String noteTypeCode) { | |
| 66 | 0 | this.noteTypeCode = noteTypeCode; |
| 67 | 0 | } |
| 68 | ||
| 69 | ||
| 70 | /** | |
| 71 | * Gets the noteTypeDescription attribute. | |
| 72 | * | |
| 73 | * @return Returns the noteTypeDescription | |
| 74 | * | |
| 75 | */ | |
| 76 | public String getNoteTypeDescription() { | |
| 77 | 0 | return noteTypeDescription; |
| 78 | } | |
| 79 | ||
| 80 | /** | |
| 81 | * Sets the noteTypeDescription attribute. | |
| 82 | * | |
| 83 | * @param noteTypeDescription The noteTypeDescription to set. | |
| 84 | * | |
| 85 | */ | |
| 86 | public void setNoteTypeDescription(String noteTypeDescription) { | |
| 87 | 0 | this.noteTypeDescription = noteTypeDescription; |
| 88 | 0 | } |
| 89 | ||
| 90 | ||
| 91 | /** | |
| 92 | * Gets the noteTypeActiveIndicator attribute. | |
| 93 | * | |
| 94 | * @return Returns the noteTypeActiveIndicator | |
| 95 | * | |
| 96 | */ | |
| 97 | public boolean isNoteTypeActiveIndicator() { | |
| 98 | 0 | return noteTypeActiveIndicator; |
| 99 | } | |
| 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 | 0 | this.noteTypeActiveIndicator = noteTypeActiveIndicator; |
| 110 | 0 | } |
| 111 | } | |
| 112 |