1 37 38 package com.sun.j2ee.blueprints.catalog; 39 40 import java.io.Serializable ; 41 42 46 public class Lodging implements Serializable { 47 48 protected String lodgingId; 49 protected String name; 50 protected String description; 51 protected double price; 52 protected String location; 53 54 public Lodging() { } 55 56 public Lodging(String lodgingId, 57 String name, 58 String description, 59 double price, 60 String location) { 61 62 this.lodgingId = lodgingId; 63 this.name = name; 64 this.description = description; 65 this.price = price; 66 this.location = location; 67 } 68 69 public String getLodgingId() { 70 return lodgingId; 71 } 72 73 public String getName() { 74 return name; 75 } 76 77 public String getDescription() { 78 return description; 79 } 80 81 public double getPrice() { 82 return price; 83 } 84 85 public String getLocation() { 86 return location; 87 } 88 89 90 public String toString() { 91 return "Lodging [id=" + lodgingId + 92 ", name=" + name + 93 ", price=" + price + 94 ", description=" + description + 95 ", location=" + location + 96 "]"; 97 } 98 } 99 | Popular Tags |