'How to define jsonb and List<String> column in JPA
This is the table that I need to create via. JPA:
CREATE TABLE IF NOT EXISTS public.employee
(
id character varying(256) COLLATE pg_catalog."default" NOT NULL,
"employeeData" jsonb,
"categoryIds" character varying(256)[] COLLATE pg_catalog."default"
)
However there is no straight forward way that I could find. @ElementCollectible relies on join table and I don't want to use that.
My understanding might be incorrect or partial as I am new to JPA.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
