Time for action – creating the business components
Let us now create the business components using the following steps:
To create a new component, go to File | New; this can also be done by right-clicking on the
Model
project, the directory, or the folder, and selecting New.In the Business Tier section, select ADF Business Components.
A Create Business Components from Tables wizard will open up for you; select the Entity Objects option.
Note
An entity object is a representation of a single row of the table. It is the metadata mapping of a single object in the data source table. We represent the
EMP
table as an entity object in ADF for the easy mapping of columns and business logic.Enter the package for your entity object as
com.empdirectory.model.entity
and selectHRSchema
for your data source. You have an option to restrict the filter by table, view, synonym, and others.In the Name filter, enter
EMP%
so that the filter is applied to query the data source. Click on Query to search for the filter...