0

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.

Akanksha
  • 39
  • 1
  • 7
  • https://stackoverflow.com/questions/5833329/generate-jpa-2-entities-from-existing-database or https://stackoverflow.com/questions/9442475/entity-generator-from-database may help – ozkanpakdil Apr 10 '22 at 20:15

0 Answers0