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 | 0 | { |
25 | |
|
26 | 0 | } |
27 | |
|
28 | |
public Book(String author, String title, double price) |
29 | 0 | { |
30 | 0 | this.author = author; |
31 | 0 | this.title = title; |
32 | 0 | this.price = price; |
33 | 0 | } |
34 | |
|
35 | |
public long getId() |
36 | |
{ |
37 | 0 | return id; |
38 | |
} |
39 | |
|
40 | |
public void setId(long id) |
41 | |
{ |
42 | 0 | this.id = id; |
43 | 0 | } |
44 | |
|
45 | |
public String getAuthor() |
46 | |
{ |
47 | 0 | return author; |
48 | |
} |
49 | |
|
50 | |
public void setAuthor(String author) |
51 | |
{ |
52 | 0 | this.author = author; |
53 | 0 | } |
54 | |
|
55 | |
public String getTitle() |
56 | |
{ |
57 | 0 | return title; |
58 | |
} |
59 | |
|
60 | |
public void setTitle(String title) |
61 | |
{ |
62 | 0 | this.title = title; |
63 | 0 | } |
64 | |
|
65 | |
public double getPrice() |
66 | |
{ |
67 | 0 | return price; |
68 | |
} |
69 | |
|
70 | |
public void setPrice(double price) |
71 | |
{ |
72 | 0 | this.price = price; |
73 | 0 | } |
74 | |
} |