Defining ADF Business Components Packages

When we have to create ADF-BC in a real project, we don’t want that all files stay together in the same directory. One of best practises according to official guidelines, is separate these files by type. The good news is that JDeveloper allows you to configure the ADF-BC default packages and apply this to any new Model projects!

Remember to configure the ADF-BC packages before create the files, this way when you create the ADF-BC, the files will be put in the right place.

I will use as default package name for the application workspace. In extension to the default package name for the application workspace, the default package prefix for ADF BC model projects should include “model.adfbc”.

ADF-BC projects should make use of the following package guidelines:

Model.jpxResides in base package for adfbc.Model.jpx
Application services.AppModule diagrams.AdfBcDiagram domains.EmailDomain
Entity entities.Employees
Entity entities.associations.EmpDeptFkAssoc
Property properties.ReadOnlyPropertySet
View views.EmployeesView
View views.links.EmpDeptFkLink

To configure the ADF-BC default packages inside JDeveloper, navigate to Tools | Preferences | Business Components | Packages. Configure the packages and click on OK.


Create a Business Component to test.






Oracle ADF Architecture Square – ADF Naming and Project Layout Guidelines v2.00:

Waslley Souza

Author: Waslley Souza

Consultor Oracle com foco em tecnologias Oracle Fusion Middleware e SOA. Certificado Oracle WebCenter Portal, Oracle ADF e Java.

Leave a Reply

Your email address will not be published. Required fields are marked *