Spring JPA/Data with PostgreSQL Array Types

--

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

--

--

Sajith vijesekara
Sajith vijesekara

Written by Sajith vijesekara

Technical Lead. Passionate about cloud computing & web security | Freelance Mobile Developer| CKAD | AWS Community Builder 🇱🇰

Responses (10)