I get this error
@Column(nullable = false, columnDefinition = "enum[]")
private Enum[] values;
I am missing some kind of conversion. Enum basic type has @Enumerated annotation. How can I achieve the same for an array type?
For context, I use postgresql 14 as DB and this is how my enum is set up.
CREATE TYPE VISIBILITY AS ENUM ('MANAGER', ...);
ALTER TABLE file
ADD COLUMN visibilities VISIBILITY[] NOT NULL;
