KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > hibernate > Name


1 package test.hibernate;
2
3
4 /**
5  * @author Administrator
6  * @struts.form include-all="true"
7  * extends="org.apache.struts.validator.ValidatorForm"
8  */

9 public class Name {
10     private String JavaDoc first;
11     private char initial;
12     private String JavaDoc last;
13     private Address address;
14
15     /**
16      * @hibernate.property
17      * column="FIRST_NAME"
18      * Returns the first.
19      * @return String
20      */

21     public String JavaDoc getFirst() {
22         return first;
23     }
24
25     /**
26      * @hibernate.property
27      * @hibernate.column
28      * name="INITIAL"
29      * sql-type="VARCHAR(1)"
30      * not-null="true"
31      * Returns the initial.
32      * @return char
33      */

34     public char getInitial() {
35         return initial;
36     }
37
38     /**
39      * @hibernate.property
40      * column="LIST_NAME"
41      * @return String
42      */

43     public String JavaDoc getLast() {
44         return last;
45     }
46
47     /**
48      * Sets the first.
49      * @param first The first to set
50      */

51     public void setFirst(String JavaDoc first) {
52         this.first = first;
53     }
54
55     /**
56      * Sets the initial.
57      * @param initial The initial to set
58      */

59     public void setInitial(char initial) {
60         this.initial = initial;
61     }
62
63     /**
64      * Sets the last.
65      * @param last The last to set
66      */

67     public void setLast(String JavaDoc last) {
68         this.last = last;
69     }
70
71     /**
72      * For testing generated nested validation rules.
73      * @struts.validator
74      * @return
75      */

76     public Address getAddress() {
77         return address;
78     }
79     
80     /**
81      * For testing generated nested validation rules.
82      * @spring.validator
83      * @return
84      */

85     public void setAddress(Address address) {
86         this.address = address;
87     }
88 }
89
Popular Tags