日期:2014-05-17 浏览次数:20854 次
<div class="hotel"> <input name="hotel.name" type="text"> <input name="hotel.area" type="text"> <input name="hotel.stars" type="text"> <input name="hotel.roomType" type="text"> <input name="hotel.checkin" type="text"> <input name="hotel.checkout" type="text"> </div> <div class="hotel"> <input name="hotel.name" type="text"> <input name="hotel.area" type="text"> <input name="hotel.stars" type="text"> <input name="hotel.roomType" type="text"> <input name="hotel.checkin" type="text"> <input name="hotel.checkout" type="text"> </div> <div class="hotel"> <input name="hotel.name" type="text"> <input name="hotel.area" type="text"> <input name="hotel.stars" type="text"> <input name="hotel.roomType" type="text"> <input name="hotel.checkin" type="text"> <input name="hotel.checkout" type="text"> </div>
public class Hotel { private int id; private String name; private String area; private String stars; private String roomType; private Date checkin; private Date checkout; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getArea() { return area; } public void setArea(String area) { this.area = area; } public String getStars() { return stars; } public void setStars(String stars) { this.stars = stars; } public String getRoomType() { return roomType; } public void setRoomType(String roomType) { this.roomType = roomType; } public Date getCheckin() { return checkin; } public void setCheckin(Date checkin) { this.checkin = checkin; } public Date getCheckout() { return checkout; } public void setCheckout(Date checkout) { this.checkout = checkout; } }