package com.bocloud.ims.entity.topology;

import com.bocloud.entity.annotations.Column;
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;

/**
 * ci_property_item实体类
 * 
 * @author lyy
 * @Version 1.0
 * @since 2017年9月15日
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table("ci_property_item")
public class PropertyItem extends Generic {
	@PK(value = PKStrategy.AUTO)
	private Long id;
	@Column("name")
	private String name;
	@Column("value")
	private String value;
	@Column("property_id")
	private Long propertyId;
	@Column("module_id")
	private Long moduleId;

	public PropertyItem(String name, String value, Long propertyId, Long moduleId) {
		super();
		this.name = name;
		this.value = value;
		this.propertyId = propertyId;
		this.moduleId = moduleId;
	}
}
