title: ERROR: value too long for type character varying(255) in postgresql
body: <p>I am using spring-boot and <code>JPA </code> this is the field  i am using for the list</p>
  <pre><code>@ElementCollection
  @Column(columnDefinition=&quot;TEXT&quot;)
  @CollectionTable(name=&quot;general_values&quot;)
  private List&lt;String&gt; values;
  </code></pre>
  <p>But i am getting Error</p>
  <pre><code>Caused by: org.postgresql.util.PSQLException: ERROR: value too long for type character varying(255)
  at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2440) ~[postgresql-42.2.5.jar:42.2.5]
  </code></pre>
  <p>However In the database table type of <code>value</code> is showing as text. Since i am using <code>TEXT</code> as a type and in the table column as well it is showing as <code>text</code> but Error is still <code>varying(255)</code>.<a href="https://i.stack.imgur.com/igoLn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/igoLn.png" alt="table colum" /></a></p>
  <p>And the request payload for value field</p>
  <pre><code>&quot;values&quot;:[&quot;45&quot;,&quot;There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable&quot;]
  </code></pre>