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.

How do I make many-to-many field optional in Django?

When you have a many-to-many relationship (related_name, not through) and you are trying to use the admin interface you …

django django-admin many-to-many
SQL JOIN many-to-many

Sorry about the minimalistic title but I don't know how to describe it in short. I have three tables: The …

mysql sql join many-to-many
getting the value of an extra pivot table column laravel

I have a phone_models, phone_problems, and a phone_model_phone_problem pivot table. The pivot table has an …

php mysql laravel many-to-many pivot-table
MongoDB Many-to-Many Association

How would you do a many-to-many association with MongoDB? For example; let's say you have a Users table and a …

many-to-many associations mongodb
a new object was found through a relationship that was not marked cascade PERSIST

In trying to get a @OneToMany relationship between Article and HeaderField I probably have the mapping not quite right, resulting …

jpa orm annotations many-to-many jpql
MS SQL creating many-to-many relation with a junction table

I'm using Microsoft SQL Server Management Studio and while creating a junction table should I create an ID column for …

sql sql-server many-to-many junction-table
How to create a many-to-many mapping in Entity Framework?

Here is the case, I have 2 entities, such as Contract、Media。 public class Media : Entity { public string Name {get; set;} …

c# entity-framework many-to-many
JPA Hibernate many-to-many cascading

I am using JPA 2.0 and hibernate. I have a User class and a Group class as follows: public class User …

hibernate jpa many-to-many jpa-2.0 cascade
Many-to-many mapping table

From examples that I have seen online and in a Programming Entity Framework CodeFirst book, when you have a collection …

c# entity-framework ef-code-first many-to-many
SQL many to many select

category_product --------------- id_category id_product product --------------- id_product id_manufacturer manufacturer --------------- id_manufacturer name How would …

sql mysql many-to-many