/* * Distributable under LGPL v3 license. * See terms of license at https://github.com/Yunfeng/schotel/blob/master/LICENSE */ package cn.buk.hotel.entity; import javax.persistence.*; /** * User: william * Date: 14-10-30 * Time: 下午7:18 * 地标类区域和建筑列表 */ @Entity @Table(name="hotel_ref_point") public class HotelRefPoint { @Id @GeneratedValue private int id; @ManyToOne @JoinColumn(name="hotel_id") private HotelInfo hotelInfo; private double distance; private int unitOfMeasureCode; private String name; private int refPointCategoryCode; private String refPointName; private double latitude; private double longitude; private String description; public double getDistance() { return distance; } public void setDistance(double distance) { this.distance = distance; } public int getUnitOfMeasureCode() { return unitOfMeasureCode; } public void setUnitOfMeasureCode(int unitOfMeasureCode) { this.unitOfMeasureCode = unitOfMeasureCode; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getRefPointCategoryCode() { return refPointCategoryCode; } public void setRefPointCategoryCode(int refPointCategoryCode) { this.refPointCategoryCode = refPointCategoryCode; } public String getRefPointName() { return refPointName; } public void setRefPointName(String refPointName) { this.refPointName = refPointName; } public double getLatitude() { return latitude; } public void setLatitude(double latitude) { this.latitude = latitude; } public double getLongitude() { return longitude; } public void setLongitude(double longitude) { this.longitude = longitude; } public HotelInfo getHotelInfo() { return hotelInfo; } public void setHotelInfo(HotelInfo hotelInfo) { this.hotelInfo = hotelInfo; } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } }