content: package org.pmiops.workbench.db.model;
  
  import jakarta.persistence.Column;
  import jakarta.persistence.Embeddable;
  import jakarta.persistence.Table;
  import java.util.Objects;
  
  @Embeddable
  @Table(name = "concept_set_concept_id")
  public class DbConceptSetConceptId {
    private Long conceptId;
    private Boolean standard;
  
    @Column(name = "concept_id")
    public Long getConceptId() {
      return conceptId;
    }
  
    public DbConceptSetConceptId setConceptId(Long conceptId) {
      this.conceptId = conceptId;
      return this;
    }
  
    @Column(name = "is_standard")
    public Boolean isStandard() {
      return standard;
    }
  
    public DbConceptSetConceptId setStandard(Boolean standard) {
      this.standard = standard;
      return this;
    }
  
    @Override
    public boolean equals(Object o) {
      if (this == o) {
        return true;
      }
      if (o == null || getClass() != o.getClass()) {
        return false;
      }
      DbConceptSetConceptId that = (DbConceptSetConceptId) o;
      return Objects.equals(conceptId, that.conceptId) && Objects.equals(standard, that.standard);
    }
  
    @Override
    public int hashCode() {
      return Objects.hash(conceptId, standard);
    }
  
    public static DbConceptSetConceptId.Builder builder() {
      return new DbConceptSetConceptId.Builder();
    }
  
    public static class Builder {
      private Long conceptId;
      private Boolean standard;
  
      private Builder() {}
  
      public DbConceptSetConceptId.Builder addConceptId(long conceptId) {
        this.conceptId = conceptId;
        return this;
      }
  
      public DbConceptSetConceptId.Builder addStandard(boolean standard) {
        this.standard = standard;
        return this;
      }
  
      public DbConceptSetConceptId build() {
        DbConceptSetConceptId dbConceptSetConceptId = new DbConceptSetConceptId();
        dbConceptSetConceptId.setConceptId(this.conceptId);
        dbConceptSetConceptId.setStandard(this.standard);
        return dbConceptSetConceptId;
      }
    }
  }
  