Overriding remove() to delete associated children entities

When deleting a parent entity, there are times you will want to delete all of the child entity rows in an entity assocation relation. In this recipe, we will see how to accomplish this task.

Getting ready

You will need access to the HR database schema.

How to do it...

  1. Start by creating a new Fusion Web Application (ADF) workspace called HRComponents.
  2. Create a Database Connection for the HR schema in the Application Resource section of the Application Navigator.
  3. Use the Business Components from Tables selection on the New Gallery dialog to create business components objects for the DEPARTMENTS and EMPLOYEES tables. The components in the Application Navigator should look ...

Get Oracle JDeveloper 11gR2 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.