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

import com.dbnt.faisp.config.FileInfo;
import lombok.*;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;

@Getter
@Setter
@Entity
@NoArgsConstructor
@DynamicInsert
@DynamicUpdate
@Table(name = "hash_tag_link_fa_rpt")
@IdClass(HashTagLinkFaRpt.HashTagLinkFaRptId.class)
public class HashTagLinkFaRpt extends FileInfo {
  @Id
  @Column(name = "fa_rpt_key")
  private Integer faRptKey;
  @Id
  @Column(name = "tag_key")
  private Integer tagKey;


  @Embeddable
  @Data
  @NoArgsConstructor
  @AllArgsConstructor
  public static class HashTagLinkFaRptId implements Serializable {
    private Integer faRptKey;
    private Integer tagKey;
  }

}
