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

ru.mynewtons.starter.oauth2.domain.Role Maven / Gradle / Ivy

package ru.mynewtons.starter.oauth2.domain;

import lombok.*;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;


@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
@EqualsAndHashCode
@ToString
@Entity
@Table(name = "roles")
public class Role {
    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid2")
    private String id;

    @Size(max = 32)
    @NotNull
    @Column(name = "title", unique = true, nullable = false, length = 16)
    private String title;

    @Size(max = 64)
    @Column(name = "description", length = 64)
    private String description;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy