<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>
实体类是Hotel.javapublic 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;
}
}请问怎样全部接收,然后写进数据库,并且数据库中的记录有3条?