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_group实体类
 *
 * @author lyy
 * @Version 1.0
 * @since 2017年9月13日
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table("ci_property_group")
public class PropertyGroup extends Generic {
    @PK(value = PKStrategy.AUTO)
    private Long id;
    @Column("name")
    private String name;
    @Column("order_num")
    private int orderNum;
    @Column("module_id")
    private Long moduleId;

    public PropertyGroup(String name, int orderNum, Long moduleId) {
        super();
        this.name = name;
        this.orderNum = orderNum;
        this.moduleId = moduleId;
    }
}
