01: package samples.ejb;
02:
03: import java.io.Serializable;
04:
05: public class NiceThings {
06:
07: private String food;
08: private int luckyNumber;
09: private String colour;
10:
11: public NiceThings(String food, int luckyNumber, String colour) {
12: this .food = food;
13: this .luckyNumber = luckyNumber;
14: this .colour = colour;
15: }
16:
17: public String getFood() {
18: return food;
19: }
20:
21: public int getLuckyNumber() {
22: return luckyNumber;
23: }
24:
25: public String getColour() {
26: return colour;
27: }
28:
29: public void setFood(String food) {
30: this .food = food;
31: }
32:
33: public void setLuckyNumber(int luckyNumber) {
34: this .luckyNumber = luckyNumber;
35: }
36:
37: public void setColour(String colour) {
38: this.colour = colour;
39: }
40:
41: }
|