package com.eactive.eai.rms.data.entity.onl.chnlInfoIntegration;

import com.eactive.eai.data.entity.AbstractEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NonNull;
import org.hibernate.annotations.Comment;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@EqualsAndHashCode(onlyExplicitlyIncluded = true, callSuper = true)

@Entity
@Table(name = "tseairm35")
@org.hibernate.annotations.Table(appliesTo = "tseairm35", comment = "체널별환경정보")
//@Cacheable
//@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class ChnlInfoIntegrationEntity extends AbstractEntity<ChnlInfoIntegrationId> implements Serializable {
   private static final long serialVersionUID = 1L;

   @EmbeddedId
   private ChnlInfoIntegrationId chnlInfoIntegrationId;

   @Column(length = 40)
   @Comment("노드명")
   private String nodename;

   @Column(length = 40)
   @Comment("큐명")
   private String queuename;

   @Override
   public @NonNull ChnlInfoIntegrationId getId() {
      return chnlInfoIntegrationId;
   }
}