Top "Many-to-many" questions

A type of relationship between entities of types A and B which associates a list of entities of type B to an entity of type A and vice versa.

AttributeError: 'ManyRelatedManager' object has no attribute 'add'? I do like in django website but got this error

for item in data: category_id = item['category_id'] del item['category_id'] category = Category.objects.get(pk=category_id) …

django many-to-many models
Does cascade="all-delete-orphan" have any meaning in a Hibernate unidirectional many-to-many association with a join table?

I have two objects which form a parent-child relationship which have a many-to-many relationship. Following the recommendations in the Hibernate …

java hibernate many-to-many cascade orphan
How to persist @ManyToMany relation - duplicate entry or detached entity

I want to persist my entity with ManyToMany relation. But i have some problem during persisting process. My entities : @Entity @…

java jpa many-to-many unique-constraint duplicates
How do I access the child classes of an object in django without knowing the name of the child class?

In Django, when you have a parent class and multiple child classes that inherit from it you would normally access …

python django many-to-many
Hibernate many to many - fetch method eager vs lazy

New to Hibernate. I have User Group many to many relation. Three tables : User , Group and UserGroup mapping table. Entities: @…

java hibernate orm many-to-many hibernate-mapping
Filter ManyToMany box in Django Admin

I have a object with a many-to-many relation with another object. In the Django Admin this results in a very …

django django-admin django-forms many-to-many django-widget
Spring and/or Hibernate: Saving many-to-many relations from one side after form submission

The context I have a simple association between two entities - Category and Email (NtoM). I'm trying to create web …

hibernate spring-mvc jpa many-to-many hibernate-mapping
Django Many-to-Many (m2m) Relation to same model

I'd like to create a many-to-many relationship from and to a user class object. I have something like this: class …

python django django-models many-to-many
How to organise a many to many relationship in MongoDB

I have two tables/collections; Users and Groups. A user can be a member of any number of groups and …

mongodb many-to-many relational-database document-database
How to define Many-to-Many relationship through Fluent API Entity Framework?

Below is my model: public class TMUrl { //many other properties //only property with type Keyword public List<Keyword> …

c# entity-framework many-to-many ef-fluent-api