You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cayenne does not generate (associative) entity classes for many-to-many database tables when junction table just keeps only foreign keys: for instance, product and right has relationship defined by table record {product_id, right_id}. LinkMove has to provide ability to import/remove relationships in a some way like:
I like the idea, but the proposed implementation does not make much sense. Product and Right may have multiple relationships.
A junction table is a database entity, and the most natural solution would be to provide the API to synchronize database entities. Most parts should be already there, e.g.
source extractor can map to database columns (i.e. in your case will contain mappings for db:product_id and db:right_id)
rows can be matched by PK via matchById() (might need some tweaks if it relies on the ObjectId internally)
Cayenne does not generate (associative) entity classes for many-to-many database tables when junction table just keeps only foreign keys: for instance, product and right has relationship defined by table record {product_id, right_id}. LinkMove has to provide ability to import/remove relationships in a some way like:
Issue is per my talk to @rzen.
The text was updated successfully, but these errors were encountered: