package com.bocloud.ims.entity.topology;

import com.bocloud.entity.annotations.Column;
import com.bocloud.entity.annotations.IgnoreAll;
import com.bocloud.entity.annotations.PK;
import com.bocloud.entity.annotations.Table;
import com.bocloud.entity.bean.Generic;
import com.bocloud.entity.meta.PKStrategy;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 图标实体类
 * 
 * @author lyy
 * @Version 1.0
 * @since 2017年9月28日
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table("ci_icon")
public class CiIcon extends Generic {
	@PK(value = PKStrategy.AUTO)
	private Long id;
	@Column("name")
	private String name;
	@Column("icon")
	private String icon;
	@Column("is_reserved")
	private Boolean reserved;
	@IgnoreAll
	private Long moduleId;

	public CiIcon(String name, String icon, Boolean reserved) {
		super();
		this.name = name;
		this.icon = icon;
		this.reserved = reserved;
	}
}
