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.
You will need access to the
HR database schema.
How to do it...
- Start by creating a new Fusion Web Application (ADF) workspace called HRComponents.
- Create a Database Connection for the
HRschema in the Application Resource section of the Application Navigator.
- Use the Business Components from Tables selection on the New Gallery dialog to create business components objects for the
EMPLOYEEStables. The components in the Application Navigator should look similar to the following: ...