First we create the Employees entity.
In the Employees Entity, we set the attribute JobId as the discriminator Attribute. We do not set any Default Value in this attribute since we want to handle all case that are not included in the subtype.

Next, we create another Entity that extends the Employees entity. The name is EmployeesAC_ACCOUNT

In the EmployeesAC_ACCOUNT we have set a Default Value in the Discriminator Attribute: "AC_ACCOUNT"

2)
To create a View Object with prolymorphic entities, we follow the ADF documentation that describes how to do it:

After we uncheck the pooling in the Application Module. we run the page again.

We press the create button and we insert data. But when we press submit, where the passivation and the activation takes place we have error messages on the page that the required attributes have no values!!

2 comments:

Dimitri, there are issues related to passivation in version 11.1.1.3.0 of JDeveloper. Specifically, the EOs are NOT passivated! This explains the behavior you see since the EO is not activated properly. Test your sample application with version 11.1.1.2.0 - it should work just fine.