package com.palmnest.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 房间实体
 *
 * @author longmeizhen
 */
@Entity
@Table(name = "tb_roomno")
public class RoomInfo implements Serializable {

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Integer    id;
	private Long       floorId;
	private String     name;
	private Date       createTime;
	private Long       creator;
	private Long       modifier;
	private Date       modifyTime;
	private Integer    isEnabled;
	private BigDecimal area;//面积
	
	private Integer areaRuleType;//面积规则


	public Integer getIsEnabled() {
		return isEnabled;
	}

	public void setIsEnabled(Integer isEnabled) {
		this.isEnabled = isEnabled;
	}

	public RoomInfo() {
		super();
	}

	public RoomInfo(Integer id, Long floorId, String name, Date createTime,
					Long creator, Long modifier, Date modifyTime, Integer isEnabled) {
		super();
		this.id = id;
		this.floorId = floorId;
		this.name = name;
		this.createTime = createTime;
		this.creator = creator;
		this.modifier = modifier;
		this.modifyTime = modifyTime;
		this.isEnabled = isEnabled;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Long getFloorId() {
		return floorId;
	}

	public void setFloorId(Long floorId) {
		this.floorId = floorId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Long getCreator() {
		return creator;
	}

	public void setCreator(Long creator) {
		this.creator = creator;
	}

	public Long getModifier() {
		return modifier;
	}

	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public BigDecimal getArea() {
		return area;
	}

	public void setArea(BigDecimal area) {
		this.area = area;
	}

	public Integer getAreaRuleType() {
		return areaRuleType;
	}

	public void setAreaRuleType(Integer areaRuleType) {
		this.areaRuleType = areaRuleType;
	}


}
