After having created an offline database as per this link and synchronised that into Oracle DB, we are now ready to create BC4J objects.
In this article, you will create ADF BC4J objects for Fusion Apps tech stack. By end of this exercise, you will be able to create Entity Object, View Object and Application Module for ADF.
Let us begin by creating the Application for Database related development.
Note - This article will also be followed by a Video demo to summarize all the steps for BC4J object creation.
Let us create an Application withinwhich we cancreate a project for BC4J.
Search Database-> All Items --> Select Database Application->Click on OK.
Application Name:
Name your application as xxDemo02
Directory : c:\JDeveloper\mywork\xxDemo02
Click on Next
Project Name:
Project Name : DatabaseModel
Directory : C:\JDeveloper\mywork\xxDemo02\DatabaseModel
Click on Finish
Now create a project for BC4J.
To create a new project click on + icon.
Select Projects option and create ADF Model Project.
ADF BC4J Project that allow us to create Entity Object, Application Module, View Object etc
Enter Default Package as xxa2f.oracle.apps.hr| - > Click on Finish.
Right click on Project ->Select New
Now create Entity Object based on the EMP table that we create and synched with DB
Click on Search button next to Connection field.
Ifprompted for DB Connection either create one or use the existing DB Connection for Offline Database
Give your entity object a name. Note that I forgot to create this EO in .schema.server package for now.
Clcik on Browse.
Select Schema Objext -> XXA2F_EMP_TABLE -->Click on Ok
Create Entity Object--> Attributtes-->Click on Next
Select EmployeeId Object from the Dropdown list, so that we can enable it.
Click Next.
Select Java-- Click Next
Create a default view object based on this Entity Object.
Also, create an Application Module.
This will create Entity Object EmployeeEO.
Goto EmployeeEO by right clicking -> Select Refactor-> Now, let us moe this Entity Object to .schema.server package.
Enter new package name into which we are moving this EO.
Clcik on Ok.
Your first set of BC4J objectshave now been created.