1 | public class Order {
↵ | | 1 | public class Group implements Serializable {↵
|
|
2 | private Long number;↵ | | 2 | private ↵
|
3 | private Date placed;↵ | | |
|
4 | private Person orderee;↵ | | |
|
5 |
↵ | | 3 | String org;↵
|
| | | 4 | private String name;↵
|
| | | 5 | private String description;↵
|
|
6 | private Set lineItems = new HashSet();↵ | | 6 | private Set users = new HashSet();↵
|
7 |
↵ | | |
|
| | | 7 | ↵
|
8 | public Order() {↵ | | 8 | public ↵
|
9 | }↵ | | |
|
|
10 | public Order(Long number, Person orderee) {
↵ | | 9 | Group(String name, String org) {↵
|
11 | this.number = number;↵ | | 10 | this.↵
|
12 | this.orderee = ordere↵ | | 11 | org = org;↵
|
13 | e;
↵ | | 12 | this.name = name;↵
|
14 | this.placed = new Date();↵ | | 13 | ↵
|
15 | }↵ | | |
|
16 |
↵ | | 14 | }↵
|
|
| | | 15 | public Group() {↵
|
| | | 16 | }↵
|
|
17 | public Long getNumber() {
↵ | | 17 | public String getName() {↵
|
18 | return number;↵ | | 18 | return n↵
|
19 | }↵ | | |
|
20 |
↵ | | 19 | ame;↵
|
| | | 20 | }↵
|
|
21 | public void setNumber(Long number) {
↵ | | 21 | public void setName(String name) {↵
|
22 | this.number = number;↵ | | 22 | this.n↵
|
23 | }↵ | | |
|
|
24 | public Date getPlaced↵ | | 23 | ame = name;↵
|
| | | 24 | }↵
|
|
25 | () {
↵ | | 25 | public String getOrg() {↵
|
26 | return placed;↵ | | 26 | return ↵
|
27 | }↵ | | |
|
28 |
↵ | | 27 | org;↵
|
| | | 28 | }↵
|
|
29 | public void setPlaced(Date placed) {
↵ | | 29 | public void setOrg(String org) {↵
|
30 | this.placed = placed;↵ | | 30 | this.↵
|
31 | }↵ | | |
|
32 |
↵ | | 31 | org = org;↵
|
| | | 32 | }↵
|
|
33 | public Person getOrderee() {
↵ | | 33 | public Set getUsers() {↵
|
34 | return orderee;↵ | | 34 | return ↵
|
35 | }↵ | | |
|
36 |
↵ | | 35 | users;↵
|
| | | 36 | }↵
|
|
37 | public void setOrderee(Person orderee) {
↵ | | 37 | public void setUsers(Set users) {↵
|
38 | this.orderee = orderee;↵ | | 38 | this.↵
|
39 | }↵ | | |
|
|
|
40 | public Set getLineItems↵ | | 39 | users = users;↵
|
| | | 40 | }↵
|
|
41 | () {
↵ | | 41 | public String getDescription() {↵
|
42 | return lineItems;↵ | | 42 | return ↵
|
43 | }↵ | | |
|
44 |
↵ | | 43 | description;↵
|
| | | 44 | }↵
|
|
45 | public void setLineItems(Set lineItems) {
↵ | | 45 | public void setDescription(String description) {↵
|
46 | this.lineItems = lineItems | | 46 | this.description = description
|