Page 1 of 1

DataSource Configuration and Many-to-Many Relationship

Posted: Thu Mar 08, 2012 10:41 am
by jdsilva
Hello:

I'm currently experiencing difficulty setting up a DataSourceFactory for a many-to-many bi-directional relationship in the admin tool. I'm able to get this working from the owning side of the relationship, but it doesn't work from the opposite side. From that side, no records are persisted in my association table.

Is there something I need to be doing to create a DataSourceFactory for listing/persisting entities of the non-owning side of the relationship? I looked at the example from the guide related to AdminRole and AdminPermission and changed my JPA mappings to be similar, but still no luck.

Thanks.

Re: DataSource Configuration and Many-to-Many Relationship

Posted: Thu Mar 22, 2012 10:54 am
by jefffischer
The guide should be accurate in this regard. You are right that the relationships do have to be bi-directional if you want to refer from the reverse direction.

I would have to see all relevant files, including the two entity classes and the two data source factories (the one that is working and the one that is not) and a description of what you want to show up in the final list grid in the UI.