package com.dbnt.faisp.main.codeMgt.model;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.util.List;

@Getter
@Setter
@Entity
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@Table(name = "code_catg")
public class CodeCatg {
  @Id
  @Column(name = "category_cd")
  private String categoryCd;
  @Column(name = "category_value", nullable = false)
  private String categoryValue;
  @Column(name = "description")
  private String description;

  @Transient
  private String status;
  @Transient
  private List<CodeMgt> itemList;

}
