vladmihalcea/hypersistence-utils

Add support of PostgreSQL types in PostgreSQL array

Aperta

#311 aperta il 11 apr 2021

 (4 commenti) (0 reazioni) (0 assegnatari)Java (399 fork)batch import
help wantedrequires investigation

Metriche repository

Star
 (2666 stelle)
Metriche merge PR
 (Merge medio 9g 17h) (1 PR mergiata in 30 g)

Descrizione

For example, there is a following DTO in PostgreSQL:

create table email
(
    account_id varchar(100),
    id varchar(100),
    recipients recipient[],
    subject varchar(100),
    content varchar(100)
);
create type recipient as
(
    email text,
    name  text
);

There is an option to use PostgreSQL array: https://vladmihalcea.com/postgresql-array-java-list/

But there is no option to use in PostgreSQL array custom types.

With Regards

Guida contributor