File tree Expand file tree Collapse file tree
spring-mvc-xml/src/main/java/com/baeldung/spring/form Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77@ XmlRootElement
88public class Employee {
99
10- private long id ;
10+ private long id ;
1111
12- @ NotNull
13- @ Size (min = 1 )
14- private String name ;
15- @ NotNull
16- @ Size (min = 1 )
17- private String contactNumber ;
12+ @ NotNull
13+ @ Size (min = 1 )
14+ private String name ;
15+ @ NotNull
16+ @ Size (min = 1 )
17+ private String contactNumber ;
1818
19- public Employee () {
20- super ();
21- }
19+ public Employee () {
20+ super ();
21+ }
2222
23- //
23+ //
2424
25- public String getName () {
26- return name ;
27- }
25+ public String getName () {
26+ return name ;
27+ }
2828
29- public void setName (final String name ) {
30- this .name = name ;
31- }
29+ public void setName (final String name ) {
30+ this .name = name ;
31+ }
3232
33- public long getId () {
34- return id ;
35- }
33+ public long getId () {
34+ return id ;
35+ }
3636
37- public void setId (final long id ) {
38- this .id = id ;
39- }
37+ public void setId (final long id ) {
38+ this .id = id ;
39+ }
4040
41- public String getContactNumber () {
42- return contactNumber ;
43- }
41+ public String getContactNumber () {
42+ return contactNumber ;
43+ }
4444
45- public void setContactNumber (final String contactNumber ) {
46- this .contactNumber = contactNumber ;
47- }
45+ public void setContactNumber (final String contactNumber ) {
46+ this .contactNumber = contactNumber ;
47+ }
4848
4949}
You can’t perform that action at this time.
0 commit comments