My PostgreSQL column is defined as a VARCHAR, and I am trying to insert an array of strings into the table using (an ordinal parameter and) native SQL and HQL. However, special HQL characters - like the left and right brackets - cause parsing problems when I setParameter in the HQL.
What is the proper way to insert an arbitrary list of strings into a VARCHAR column?
INSERT INTO kw.ddoc_all ( textarea_8941776, id ) VALUES ( CAST(?1 AS VARCHAR[]), CAST(?2 AS UUID) );
hql.setParameter(ppIndex, "{" + concatenated + "}" );