1
2
3
4
5
6
7
8
9
10
11 package org.mule.example.bookstore;
12
13
14
15
16 public class Book
17 {
18 private long id;
19 private String author;
20 private String title;
21 double price;
22
23 public Book()
24 {
25
26 }
27
28 public Book(String author, String title, double price)
29 {
30 this.author = author;
31 this.title = title;
32 this.price = price;
33 }
34
35 public long getId()
36 {
37 return id;
38 }
39
40 public void setId(long id)
41 {
42 this.id = id;
43 }
44
45 public String getAuthor()
46 {
47 return author;
48 }
49
50 public void setAuthor(String author)
51 {
52 this.author = author;
53 }
54
55 public String getTitle()
56 {
57 return title;
58 }
59
60 public void setTitle(String title)
61 {
62 this.title = title;
63 }
64
65 public double getPrice()
66 {
67 return price;
68 }
69
70 public void setPrice(double price)
71 {
72 this.price = price;
73 }
74 }