package cn.wise.sc.energy.power.plant.business.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import org.springframework.context.annotation.Lazy;

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 java.io.Serializable;

/**
 * @description:
 * @author: neo.shu
 * @create: 2020-10-16 10:00
 **/
@Data
@Entity
@Table(name = "role")
@Lazy(false)
@Builder
@AllArgsConstructor
public class Role extends AbstractEntity<Integer> implements Serializable {


    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name="roleid")
    private Integer roleId;

    private String permission;


    private String name;

    public Role() {
    }

    @Override
    public Integer getId() {
        return null;
    }
}
