package com.dbnt.faisp.faStatistics.crackdownStatus.model;

import com.dbnt.faisp.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 = "violation")
public class Violation extends BaseModel {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "violation_key")
    private Integer violationKey;
    @Column(name = "fb_key")
    private Integer fbKey;
    @Column(name = "violation")
    private String violation;

    @Transient
    private String violationEtc;
}
