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

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_ivsgt")
@IdClass(HashTagLinkIvsgt.HashTagLinkIvsgtId.class)
public class HashTagLinkIvsgt {
  @Id
  @Column(name = "ivsgt_key")
  private Integer ivsgtKey;
  @Id
  @Column(name = "tag_key")
  private Integer tagKey;


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

}
