Iam trying to validate the Detail Records in a Master Detail form. I have a check box in my Detail Section. I want to add the validation that either all the Detail records are Checked or all are Unchecked. To do this I have added valdation method on the Master Entity object but, this executes only when any attribute of the master record is changed but not when just it's detail record is updated or inserted. Please advise me where I can write this validation logic or how I can trigger to execute validation method when a child record gets updated.
Please ask such questions on the JDeveloper forum in the future as it is not related to JHeadstart.
To get the behavior you want, you need to check the Composition Association checkbox on the entity association between the master and detail EO.