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

net.n2oapp.security.admin.impl.entity.DepartmentEntity Maven / Gradle / Ivy

There is a newer version: 8.0.1
Show newest version
package net.n2oapp.security.admin.impl.entity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import net.n2oapp.security.admin.impl.entity.base.RdmBaseEntity;

import javax.persistence.*;

/**
 * Сущность Департамент
 */
@Entity
@Getter
@Setter
@NoArgsConstructor
@Table(name = "department", schema = "sec")
public class DepartmentEntity extends RdmBaseEntity {
    /**
     * Уникальный идентификатор записи
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", nullable = false)
    private Integer id;

    /**
     * Код департамента МПС
     */
    @Column(name = "code", nullable = false)
    private String code;

    /**
     * Наименование департамента МПС
     */
    @Column(name = "name", nullable = false)
    private String name;

    public DepartmentEntity(Integer id) {
        this.id = id;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy