How to create and use custom data types in hibernate

In postgresql db column is declared as varchar[] how to map in jpa entity and by using entity how to save the values and how to get values. please help me out. thanks in advance.

I think you should take a look at the Hibernate Types project: https://github.com/vladmihalcea/hibernate-types.

AFAIK, it has support for PostgreSQL array mapping.

1 Like