package com.dbnt.sims.ivsgtMgt.boardInvestigation.model;

import com.dbnt.sims.config.BaseModel;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

@Getter
@Setter
@Entity
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@Table(name = "arrest_type")
public class ArrestType extends BaseModel {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "arrest_type_key")
    private Integer arrestTypeKey;
    @Column(name = "ivsgt_key")
    private Integer ivsgtKey;
    @Column(name = "arrest_cd")
    private String arrestCd;
    @Column(name = "arrest_cd2")
    private String arrestCd2;

    @Transient
    private String arrestCdName;
    @Transient
    private String arrestCd2Name;
}
