content: package com.bookstore.entity;
  
  import javax.persistence.Entity;
  import javax.persistence.GeneratedValue;
  import javax.persistence.GenerationType;
  import javax.persistence.Id;
  import java.io.Serializable;
  import java.util.Objects;
  
  @Entity
  public class Publisher implements Serializable {
      private static final long serialVersionUID = 1L;
  
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      private Long id;
  
      private int urc;
      private String name;
  
      public Long getId() {
          return id;
      }
  
      public void setId(Long id) {
          this.id = id;
      }
  
      public int getUrc() {
          return urc;
      }
  
      public void setUrc(int urc) {
          this.urc = urc;
      }
  
      public String getName() {
          return name;
      }
  
      public void setName(String name) {
          this.name = name;
      }
  
      @Override
      public int hashCode() {
          int hash = 3;
          hash = 79 * hash + this.urc;
          hash = 79 * hash + Objects.hashCode(this.name);
          return hash;
      }
  
      @Override
      public boolean equals(Object obj) {
          if (obj == null) {
              return false;
          }
          if (this == obj) {
              return true;
          }
          if (getClass() != obj.getClass()) {
              return false;
          }
  
          final Publisher other = (Publisher) obj;
          if (this.urc != other.urc) {
              return false;
          }
  
          if (!Objects.equals(this.name, other.name)) {
              return false;
          }
  
          return true;
      }
  
      @Override
      public String toString() {
          return "Publisher{" + "id=" + id + ", urc=" + urc + ", name=" + name + '}';
      }
  }