Spring JPA/Data with PostgreSQL Array Types
May 26, 2018
PostgreSql Array Types with spring jpa
Last couple of weeks I have to work with spring boot pet project. This solution for one of the difficulty faced with PostgreSQL string array with spring JPA. The problem vs It Always failed to map the domain class array list with PostgreSQL text array. This Solution is common for any type of Arrays in PostgreSQL database.
First add this Util class
Then you can add the type of the entity class.
Hope this will helps to resolve your issue. Thanks