package com.ifish.entity;

import java.io.Serializable;
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;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 广告位信息
 * @author Administrator
 *
 */
@Entity
@Table(name="tbl_ad_info")
public class AdInfo implements Serializable{

	private static final long serialVersionUID = 1658175021665132499L;
	
	/**
	 * id
	 */
	@Id
	@Column(name="ad_id")
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer adId;
	/**
	 * 是否显示
	 */
	@Column(name="is_show",length=1)
	private String isShow;
	/**
	 * 广告类型
	 */
	@Column(name="ad_type",nullable=false)
	private Integer adType;
	/**
	 * 广告位图片
	 */
	@Column(name="ad_image",length=20)
	private String adImage;
	/**
	 * 广告位链接
	 */
	@Column(name="ad_link",length=100)
	private String adLink;
	/**
	 * 排序
	 */
	@Column(name="order_num",nullable=false)
	private Integer orderNum;
	/**
	 * 更新时间
	 */
	@Column(name="update_time")
	@Temporal(TemporalType.TIMESTAMP)
	private Date updateTime;
	/**
	 * 创建时间
	 */
	@Column(name="create_time")
	@Temporal(TemporalType.TIMESTAMP)
	private Date createTime;
	
	public Integer getAdId() {
		return adId;
	}
	public void setAdId(Integer adId) {
		this.adId = adId;
	}
	public Integer getAdType() {
		return adType;
	}
	public void setAdType(Integer adType) {
		this.adType = adType;
	}
	public String getAdImage() {
		return adImage;
	}
	public void setAdImage(String adImage) {
		this.adImage = adImage;
	}
	public String getAdLink() {
		return adLink;
	}
	public void setAdLink(String adLink) {
		this.adLink = adLink;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getIsShow() {
		return isShow;
	}
	public void setIsShow(String isShow) {
		this.isShow = isShow;
	}
	public Integer getOrderNum() {
		return orderNum;
	}
	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}
	
}
