All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dream.models.Authority Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
package com.dream.models;

import com.dream.utils.Role;
import lombok.*;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Entity
@Table(name = "authority")
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@Builder
public class Authority implements Serializable{

    private static final long serialVersionUID = 1l;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @NotNull
    @Enumerated(EnumType.STRING)
    private Role role;


    public Authority(Role role){
        this.role = role;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy