Top "One-to-many" questions

one-to-many is relationship between two different object properties.

Doctrine2 One-To-Many, Self-referencing relationship

In my 'Topic' entity, I have a One-To-Many, Self-referencing relationship $parent:$children. class Topic { /** @ORM\Id * @Column(type="integer") * @ORM\…

symfony doctrine-orm one-to-many relationship self-reference
Mapstruct - Send nested entity having (one-to-many relation) in the response

I have 2 entities CallRecords and CallRecordOperators with one-to-many relation as given below public class CallRecords { @Id @Column(name = "id", unique = …

java hibernate one-to-many dto mapstruct
jpa one to many composite primary key mapping

I have 2 tables as follows : TABLE_A ------- A_SIREN A_NDA TABLE_B ------- B_id B_NDA B_…

java hibernate jpa one-to-many composite-key
OneToMany - what are the differences between join table and foreign key?

There is the possibility to disable the @OneToMany relationship join table with the @JoinColumn annotation. The default is a join …

mapping jpa-2.0 eclipselink one-to-many
JOOQ pojos with one-to-many and many-to-many relations

I am struggling to understand how to handle pojos with one-to-many and many-to-many relationships with JOOQ. I store locations that …

java sql many-to-many one-to-many jooq
Hibernate - One to many relationship and orphanRemoval cascade

I have a basic one to many relation parent / child like in the chapter 21 of Hibernate references book. The cascade …

java hibernate one-to-many cascade orphan
count relations inside loop in twig

I use Symfony2 and twig templating. Think of the Q&A exact same as stackoverflow. There are list of …

php symfony one-to-many twig
Sails.js - One to Many mapping

Is there any way to do relation mapping between models in Sails.js? Here is what I would like: Video.…

javascript node.js mapping one-to-many sails.js
JPA/Hibernate bidirectional many-to-one results in StackOverflowException

I have entities User and GrantedRole that have a bidirectional one-to-many relation. When I try to add a GrantedRole to …

java hibernate jpa one-to-many bidirectional
Symfony2+Doctrine - Validating one-to-many collection of entities

I have a form to create a new entity. That entity has a collection of other entities that are also …

validation symfony collections doctrine one-to-many