Top "Parent-child" questions

A relationship between entities in which one acts in a major role and the other in a minor role.

jQuery: preventDefault on parent link only

SOLUTION: Found a solution. Used parentNode: $('.skaftetopmenu-li > a').click(function(e) { e.preventDefault(); var subid = $(this.parentNode).attr(…

jquery menu parent-child parent preventdefault
android - refresh parent Activity when child Activity finishes

I have a parent Activity which starts a child activity. In the child activity, I do: toolbar = (Toolbar) findViewById(R.…

android android-activity parent-child up-navigation
Order navigation properties when using Include and/or Select methods with EF 4.1 Code-First?

This is the second step of a question explained here: EF 4.1 code-first: How to load related data (parent-child-grandchild)?. With @Slauma's …

entity-framework entity-framework-4.1 ef-code-first parent-child
Change child view controller

I have a view controller that when I press a button a child view controller appear. This works perfectly but …

ios view controller parent-child
Child class calls a method of the parent class

In objective-C I want to have a child class call or invoke a parent's method. As in the parent has …

objective-c methods parent-child class-hierarchy alloc
Component not updating when I change the props that I pass to it in React

I have a functional component which has a child component. The child component displays some text which is passed onto …

javascript reactjs parent-child react-props rerender
Open child window and redirect parent window

I have a JavaScript that opens a new window when a button is clicked. It works fine. But, I want …

javascript redirect parent-child new-window
Reaping child processes from Perl

I have a script that spawns a set of children. The parent must wait for each of the children to …

perl fork parent-child waitpid
Hibernate recursive mapping parent/child structure - StackOverflowError when retrieve data

I am using Hibernate 5.2.7.Final, and native Hibernate API. I have an Employee entity with recursive relations: @Entity public class …

hibernate recursion parent-child hibernate-mapping jpa-annotations
Are parent constructors called if a child class does NOT define a constructor?

In the PHP Constructors and Destructors documentation it states Note: Parent constructors are not called implicitly if the child class …

php class constructor parent-child