title: org.postgresql.util.PSQLException: ERROR: value too long for type character varying(255)
body: <p>When I execute my project, I get this error:
  <a href="https://i.stack.imgur.com/tpDmT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tpDmT.png" alt="enter image description here"></a></p>
  
  <p>The goal is to save <code>json</code> text into a database using <strong>hibernate</strong>.</p>
  
  <p><code>Users.java</code> &amp; <code>UsersBooks.java</code> is likewise,</p>
  
  <p><a href="https://i.stack.imgur.com/xLGux.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xLGux.png" alt="enter image description here"></a></p>
  
  <p><strong>Books.java:</strong></p>
  
  <pre><code>@Entity
  @Table(name="tblbooks")
  public class Books {
  
  
  @Id
  @Column(name = "bookshareId")
  private int bookshareId;
  
  @Column(name="author")
  private String author;
  
  @Column(name = "availableToDownload")
  private int availableToDownload;
  
  @Column(name = "briefSynopsis")
  private String briefSynopsis;
  
  @Column(name="category")
  private String category;
  
  @Column(name = "completeSynopsis")
  private String completeSynopsis;
  
  @Column(name = "contentId")
  private int contentId;
  
  @Column(name = "copyright")
  private Date copyright;
  
  @Column(name="downloadFormat")
  private String downloadFormat;
  
  @Column(name="dtbookSize")
  private int dtbookSize;
  
  @Column(name = "freelyAvailable")
  private int freelyAvailable;
  
  @Column(name = "brf")
  private int brf;
  
  @Column(name = "daisy")
  private int daisy;
  
  @Column(name = "images")
  private int images;
  
  @Column(name = "isbn13")
  private String isbn13;
  
  @Column(name="language")
  private String language;
  
  @Column(name = "publishDate")
  private Date publishDate;
  
  @Column(name = "publisher")
  private String publisher;
  
  @Column(name = "quality")
  private String quality;
  
  @Column(name = "title")
  private String title;
  
  @OneToMany(mappedBy="book")
  private List&lt;UsersBooks&gt; usersBooks;
  
  
  
  //Getters &amp; Setters
  </code></pre>