Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
NoteType |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright 2007-2008 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 | ||
17 | package org.kuali.rice.krad.bo; | |
18 | ||
19 | import org.hibernate.annotations.Type; | |
20 | ||
21 | import javax.persistence.Column; | |
22 | import javax.persistence.Entity; | |
23 | import javax.persistence.Id; | |
24 | import javax.persistence.Table; | |
25 | ||
26 | ||
27 | /** | |
28 | * | |
29 | */ | |
30 | @Entity | |
31 | @Table(name="KRNS_NTE_TYP_T") | |
32 | public class NoteType extends PersistableBusinessObjectBase { | |
33 | ||
34 | @Id | |
35 | @Column(name="NTE_TYP_CD") | |
36 | private String noteTypeCode; | |
37 | @Column(name="TYP_DESC_TXT") | |
38 | private String noteTypeDescription; | |
39 | @Type(type="yes_no") | |
40 | @Column(name="ACTV_IND") | |
41 | private boolean noteTypeActiveIndicator; | |
42 | ||
43 | /** | |
44 | * Default constructor. | |
45 | */ | |
46 | 0 | public NoteType() { |
47 | ||
48 | 0 | } |
49 | ||
50 | /** | |
51 | * Gets the noteTypeCode attribute. | |
52 | * | |
53 | * @return Returns the noteTypeCode | |
54 | * | |
55 | */ | |
56 | public String getNoteTypeCode() { | |
57 | 0 | return noteTypeCode; |
58 | } | |
59 | ||
60 | /** | |
61 | * Sets the noteTypeCode attribute. | |
62 | * | |
63 | * @param noteTypeCode The noteTypeCode to set. | |
64 | * | |
65 | */ | |
66 | public void setNoteTypeCode(String noteTypeCode) { | |
67 | 0 | this.noteTypeCode = noteTypeCode; |
68 | 0 | } |
69 | ||
70 | ||
71 | /** | |
72 | * Gets the noteTypeDescription attribute. | |
73 | * | |
74 | * @return Returns the noteTypeDescription | |
75 | * | |
76 | */ | |
77 | public String getNoteTypeDescription() { | |
78 | 0 | return noteTypeDescription; |
79 | } | |
80 | ||
81 | /** | |
82 | * Sets the noteTypeDescription attribute. | |
83 | * | |
84 | * @param noteTypeDescription The noteTypeDescription to set. | |
85 | * | |
86 | */ | |
87 | public void setNoteTypeDescription(String noteTypeDescription) { | |
88 | 0 | this.noteTypeDescription = noteTypeDescription; |
89 | 0 | } |
90 | ||
91 | ||
92 | /** | |
93 | * Gets the noteTypeActiveIndicator attribute. | |
94 | * | |
95 | * @return Returns the noteTypeActiveIndicator | |
96 | * | |
97 | */ | |
98 | public boolean isNoteTypeActiveIndicator() { | |
99 | 0 | return noteTypeActiveIndicator; |
100 | } | |
101 | ||
102 | ||
103 | /** | |
104 | * Sets the noteTypeActiveIndicator attribute. | |
105 | * | |
106 | * @param noteTypeActiveIndicator The noteTypeActiveIndicator to set. | |
107 | * | |
108 | */ | |
109 | public void setNoteTypeActiveIndicator(boolean noteTypeActiveIndicator) { | |
110 | 0 | this.noteTypeActiveIndicator = noteTypeActiveIndicator; |
111 | 0 | } |
112 | } | |
113 |