Hi Rob,
I got two entity classes, users and tenants. There are three database tables (two with the same name), plus users_tenants, which has user_id and tenant_id. Both columns are foreign keys to the respective tables primary keys.
From how I understood, in both entities, I will need to add a List to the other one, along with @ManyToMany annotations. One side also requires @JoinTable.
However, I am receiving a NullPointerException deep from within io.ebeaninternal. Please find the example repository here:
Important bits:
I am running on Java temurin-21.0.2 with a PostgreSQL database and HikariCP connection pool. All other relationships in this project work perfectly fine (OneToMany, ManyToOne).
What am I doing wrong? The documentation page for ManyToMany unfortunately shows up empty for me, so I've been operating off of random internet posts.
Thank you very much in advance,
Georg / Tux