Your application has a business rule that a Customer Booking entity object cannot be deleted if its
mandatory Status attribute is still OPEN. If the status if OPEN, an error message must also be shown to the
user.
To implement this rule, you decide to override the remove()method in the related BookingImplclass
that implements oracle.jbo.server.EntityImpl.
Which option represents the code snippet that would implement these requirements?
A:

B:

C:

D:

A:Option A
B:Option B
C:Option C
D:Option D
Correct Answer:
C
Explanation/Reference:
You can Override the remove method to add your own business logic for the remove operation. For
example, you can implement business logic that throws an exception that report why an Entity Object
cannot be removed.
If this method is overridden, then the default implementation must be called with super.remove() to restore
the Entity post states, as well as notify posted "child" Entities to handle post changes errors.
References: https://docs.oracle.com/cd/B14099_19/web.1012/b14022/oracle/jbo/server/EntityImpl.html
http://kadamshn.blogspot.se/2016/04/customize-adf-entity-object.html