Hello!
I'm trying to generate entities through Seam Generate Entities in Eclipse.
My tables are: Have tabel A and table B, in th middle there's table A_B for many-to-many relationship.
It generaties only the entities for A and B. These como with list, A has a Set of B and vica-versa.
My problem is to persiste in DB. I save A and B, in A's list there is a B and in B's list there is an A.
The A and the B make it to the DB fine but there is nothing on the association table.
The code to save is:
A A = new A();
A.getBs().add(x.getB());
x.getB().getAs().add(A);
session.save(x.getB());
long idA = (Long)session.save(A);