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

hu.icellmobilsoft.coffee.model.security.SecurityRole Maven / Gradle / Ivy

/*-
 * #%L
 * Coffee
 * %%
 * Copyright (C) 2020 i-Cell Mobilsoft Zrt.
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */
package hu.icellmobilsoft.coffee.model.security;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

import hu.icellmobilsoft.coffee.model.base.AbstractIdentifiedAuditEntity;

/**
 * SecurityRole class.
 *
 * @author imre.scheffer
 * @since 1.0.0
 */
@Entity
@Table(name = "security_role")
public class SecurityRole extends AbstractIdentifiedAuditEntity {

    private static final long serialVersionUID = 1L;

    /**
     * Default constructor, constructs a new object.
     */
    public SecurityRole() {
        super();
    }

    /**
     * security role description
     */
    @Column(name = "description", length = 255, nullable = false)
    @NotNull
    @Size(max = 255)
    private String description;

    /**
     * security role name
     */
    @Column(name = "name", length = 100, nullable = false)
    @NotNull
    @Size(max = 100)
    private String name;

    /**
     * Getter for the field {@code description}.
     * 
     * @return description
     */
    public String getDescription() {
        return description;
    }

    /**
     * Setter for the field {@code description}.
     * 
     * @param description
     *            description
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * Getter for the field {@code name}.
     * 
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * Setter for the field {@code name}.
     * 
     * @param name
     *            name
     */
    public void setName(String name) {
        this.name = name;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy