/* * 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.*; import java.util.Date; /** * User: william * Date: 14-11-1 * Time: 下午1:25 */ @Entity @Table(name="CacheTime_ByCity") public class CacheCity { @Id @GeneratedValue private int id; @Column(name="city_id") private int cityId; @Temporal(TemporalType.TIMESTAMP) private Date cacheTime; @Temporal(TemporalType.TIMESTAMP) @Column(insertable = true, updatable = false) private Date createTime; public int getId() { return id; } public void setId(int id) { this.id = id; } public int getCityId() { return cityId; } public void setCityId(int cityId) { this.cityId = cityId; } public Date getCacheTime() { return cacheTime; } public void setCacheTime(Date cacheTime) { this.cacheTime = cacheTime; } public Date getCreateTime() { return createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } }