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