1 | public class User {↵ | | 1 | public class Item {↵
|
| | | 2 | ↵
|
2 | private String name;↵ | | 3 | private String ↵
|
3 | private String passw↵ | | 4 | description;↵
|
| | | 5 | private Long id;↵
|
4 | ord;↵ | | 6 | private Category category;↵
|
5 | private Set actions = new HashSet();↵ | | 7 | private Set bids = new HashSet();↵
|
6 | private Calendar lastUpdated;↵ | | 8 | private ↵
|
7 | private Calendar created;↵ | | 9 | Set comments = new HashSet();↵
|
8 | ↵ | | |
|
9 | public User(String name, String password) {↵ | | 10 | public String ↵
|
10 | super();↵ | | |
|
11 | this.name = name;↵ | | |
|
12 | this.password = password↵ | | 11 | getDescription() {↵
|
13 | ;↵ | | 12 | return description;↵
|
14 | }↵ | | 13 | }↵
|
|
15 | public User() {↵ | | 14 | public ↵
|
16 | super()↵ | | 15 | void setDescription(String description) {↵
|
17 | ;↵ | | 16 | this.description = description;↵
|
18 | }↵ | | 17 | }↵
|
|
19 | public Calendar getLastUpdated() {↵ | | 18 | public Long getId() {↵
|
20 | return lastUpdated;↵ | | 19 | return id;↵
|
21 | }↵ | | 20 | }↵
|
|
22 | public void setLastUpdated(Calendar lastUpdated) {↵ | | 21 | public void set↵
|
23 | this.lastUpdated = lastUpdated;↵ | | |
|
24 | }↵ | | |
|
25 | public String getName() {↵ | | |
|
26 | return name;↵ | | |
|
27 | }↵ | | |
|
28 | public void setName(↵ | | 22 | Id(Long id) {↵
|
| | | 23 | this.id = id;↵
|
| | | 24 | }↵
|
|
| | | 25 | Item() {}↵
|
29 | String name) {↵ | | 26 | public Item(Category cat, String desc) { ↵
|
30 | this.name = name↵ | | 27 | description = desc; ↵
|
31 | ;↵ | | 28 | category = cat;↵
|
32 | }↵ | | 29 | }↵
|
|
33 | public String getPassword() {↵ | | 30 | public Set getBids() {↵
|
34 | return password;↵ | | 31 | return bids;↵
|
35 | }↵ | | 32 | }↵
|
|
36 | public void setPassword(String password) {↵ | | 33 | public void set↵
|
37 | this.password = password↵ | | 34 | Bids(Set bids) {↵
|
38 | ;↵ | | 35 | this.bids = bids;↵
|
39 | }↵ | | 36 | }↵
|
|
40 | public Set getActions() {↵ | | 37 | public Set getComments() {↵
|
41 | return actions;↵ | | 38 | return comments;↵
|
42 | }↵ | | 39 | }↵
|
|
43 | public void setActions(Set actions) {↵ | | 40 | public void setComments(Set comments) {↵
|
44 | this.actions = actions;↵ | | 41 | this.comments = comments;↵
|
45 | }↵ | | 42 | }↵
|
|
46 | public Calendar getCreated() {↵ | | 43 | public Category getCategory() {↵
|
47 | return created;↵ | | 44 | return category;↵
|
48 | }↵ | | 45 | }↵
|
|
49 | public void setCreated(Calendar created) {↵ | | 46 | public void setCategory(Category category) {↵
|
50 | this.created = created;↵ | | 47 | this.category = category;↵
|
51 | | | 48 |
|