1 package org.sourceforge.vlibrary.user.domain;
2
3
4
5
6
7
8
9 public class Location {
10
11
12
13 private long id = 0;
14
15
16
17
18 private String description = null;
19
20
21
22
23
24
25
26 public Location(long id, String description) {
27 super();
28 this.id = id;
29 this.description = description;
30 }
31
32
33
34
35 public Location() {
36 }
37
38
39
40
41 public String getDescription() {
42 return description;
43 }
44
45
46
47
48 public long getId() {
49 return id;
50 }
51
52
53
54
55 public String toString() {
56 return "<Location id=\"" + id + "\" description=\"" + description + "\" />";
57 }
58
59
60
61
62
63
64 public void setDescription(String description) {
65 this.description = description;
66 }
67
68
69
70
71
72
73 public void setId(long id) {
74 this.id = id;
75 }
76 }