I have two entities A and B. In entity A I have a column of type bigint[] , which contains the ids of B. I want to map them into a class.

I've tried @Many to Many, but it needs a cross table.

Table A has a column of type bigint[]. Those are the ids of the B.

class A extends AutoIdentity {
   Collection<B> bs;

class B extends AutoIdentity {


I want to achieve a simple get/set solution for persisting into this bigint[] column.

0 Answers