@ElementCollection
@Column(columnDefinition="TEXT")
@CollectionTable(name="general_values")
private List values;
Но я получаю сообщение об ошибке
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]
Однако в таблице базы данных тип значения отображается как текст. Поскольку я использую ТЕКСТ в качестве типа и в столбце таблицы, он отображается как текст, но ошибка все еще варьируется (255).

И полезные данные запроса для поля значения
"values":["45","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"]
Подробнее здесь: https://stackoverflow.com/questions/706 ... postgresql
Мобильная версия