1
2
3
4
5
6
7 package org.mule.example.bookstore;
8
9
10
11
12 public class Order
13 {
14 private Book book;
15 private int quantity;
16
17 private String address;
18
19 private String email;
20
21 public Order()
22 {
23
24 }
25
26 public Order(Book book, int quantity, String address, String email)
27 {
28 this.book = book;
29 this.quantity = quantity;
30 this.address = address;
31 this.email = email;
32 }
33
34 public Book getBook()
35 {
36 return book;
37 }
38
39 public void setBook(Book book)
40 {
41 this.book = book;
42 }
43
44 public int getQuantity()
45 {
46 return quantity;
47 }
48
49 public void setQuantity(int quantity)
50 {
51 this.quantity = quantity;
52 }
53
54 public String getAddress()
55 {
56 return address;
57 }
58
59 public void setAddress(String address)
60 {
61 this.address = address;
62 }
63
64 public String getEmail()
65 {
66 return email;
67 }
68
69 public void setEmail(String email)
70 {
71 this.email = email;
72 }
73 }