KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > hibernate > Error


1 package test.hibernate;
2
3 /**
4 *
5 * @hibernate.class table="error"
6 *
7 */

8 public class Error extends OIDObject
9 {
10 protected String JavaDoc message;
11
12 protected String JavaDoc description;
13
14 protected String JavaDoc errorMode;
15
16 protected String JavaDoc type;
17
18 /**
19 * @hibernate.property
20 * column="error_message"
21 * not-null="true"
22 *
23 */

24 public String JavaDoc getMessage()
25 {
26 return message;
27 }
28
29 public void setMessage(String JavaDoc m)
30 {
31 message = m;
32 }
33
34 /**
35 * @hibernate.property
36 * column="description"
37 *
38 */

39 public String JavaDoc getDescription()
40 {
41 return description;
42 }
43
44 public void setDescription(String JavaDoc desc)
45 {
46 description = desc;
47 }
48
49 /**
50 * @hibernate.property
51 * column="errormode"
52 * not-null="true"
53 *
54 */

55 public String JavaDoc getErrorMode()
56 {
57 return errorMode;
58 }
59
60 public void setErrorMode(String JavaDoc errorMode)
61 {
62 this.errorMode = errorMode;
63 }
64
65 /**
66 * @hibernate.property
67 * column="error_type"
68 * not-null="true"
69 *
70 */

71
72 public String JavaDoc getType()
73 {
74 return type;
75 }
76
77 public void setType(String JavaDoc newType)
78 {
79 type = newType;
80 }
81 }
82
83
Popular Tags