How to create and use custom data types in hibernate


#1

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.


#2

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.