content: package com.bookstore.entity;
  
  import com.fasterxml.jackson.annotation.JsonInclude;
  import com.fasterxml.jackson.annotation.JsonInclude.Include;
  
  import javax.persistence.*;
  import java.io.Serializable;
  
  @Entity
  @JsonInclude(Include.NON_DEFAULT)
  public class Author implements Serializable {
      private static final long serialVersionUID = 1L;
  
      @Id
      private Long id;
  
      @Lob
      @Basic(fetch = FetchType.LAZY)
      private byte[] avatar;
  
      private int age;
      private String name;
      private String genre;
  
      public Long getId() {
          return id;
      }
  
      public void setId(Long id) {
          this.id = id;
      }
  
      public byte[] getAvatar() {
          return avatar;
      }
  
      public void setAvatar(byte[] avatar) {
          this.avatar = avatar;
      }
  
      public String getName() {
          return name;
      }
  
      public void setName(String name) {
          this.name = name;
      }
  
      public String getGenre() {
          return genre;
      }
  
      public void setGenre(String genre) {
          this.genre = genre;
      }
  
      public int getAge() {
          return age;
      }
  
      public void setAge(int age) {
          this.age = age;
      }
  
      @Override
      public String toString() {
          return "Author{" + "name=" + name + "}";
      }
  }