1 | public class Order {↵ | | 1 | public class User implements Serializable {↵
|
|
2 | private Long number;↵ | | 2 | private Long id;↵
|
3 | private Date placed;↵ | | 3 | private String org;↵
|
4 | private Person orderee;↵ | | 4 | private ↵
|
| | | 5 | String name;↵
|
5 | private Set lineItems = new HashSet();↵ | | 6 | private Set groups = new HashSet();↵
|
|
6 | public Order() {↵ | | 7 | public User() {↵
|
7 | }↵ | | 8 | }↵
|
|
8 | public Order(Long number, Person orderee) {↵ | | 9 | public ↵
|
9 | this.number = number;↵ | | |
|
10 | this.orderee = orderee;↵ | | |
|
11 | this.placed = new Date()↵ | | 10 | User(String name, String org) {↵
|
| | | 11 | this.org = org;↵
|
12 | ;↵ | | 12 | this.name = name;↵
|
13 | }↵ | | 13 | }↵
|
|
14 | public Long getNumber() {↵ | | 14 | public Long getId() {↵
|
15 | return number;↵ | | 15 | return id;↵
|
16 | }↵ | | 16 | }↵
|
|
17 | public void setNumber(Long number) {↵ | | 17 | public void set↵
|
18 | this.number = number↵ | | 18 | Id(Long id) {↵
|
19 | ;↵ | | 19 | this.id = id;↵
|
20 | }↵ | | 20 | }↵
|
|
21 | public Date getPlaced() {↵ | | 21 | public String getName() {↵
|
22 | return placed;↵ | | 22 | return name;↵
|
23 | }↵ | | 23 | }↵
|
|
24 | public void setPlaced(Date placed) {↵ | | 24 | public void setName(String name) {↵
|
25 | this.placed = placed;↵ | | 25 | this.name = name;↵
|
26 | }↵ | | 26 | }↵
|
|
27 | public Person getOrderee() {↵ | | 27 | public String getOrg() {↵
|
28 | return orderee;↵ | | 28 | return org;↵
|
29 | }↵ | | 29 | }↵
|
|
30 | public void setOrderee(Person orderee) {↵ | | 30 | public void setOr↵
|
31 | this.orderee = orderee↵ | | 31 | g(String org) {↵
|
32 | ;↵ | | 32 | this.org = org;↵
|
33 | }↵ | | 33 | }↵
|
|
|
34 | public Set getLineItems() {↵ | | 34 | public Set getGroups() {↵
|
35 | return lineItems;↵ | | 35 | return groups;↵
|
36 | }↵ | | 36 | }↵
|
|
37 | public void setLineItems(Set lineItems) {↵ | | 37 | public void set↵
|
38 | this.lineItems = lineItem↵ | | 38 | Groups(Set groups) {↵
|
39 | s;↵ | | 39 | this.groups = groups;↵
|
40 | | | 40 |
|