Header Ads

How to Create Entity Object, View Object and Application Module in ADF

Create Entity Object, View Object and Application Module

In Previous article we had discussed How to Create Fussion Application. Our next point no 2 is How to Create the Database Connection and How to Create EO (Entity Object), VO (View Object) and AM (Application Module). Now to move on the second point. The following steps we are going to cover.
  1. Create Fusion Web Application.
  2. Create Database Connection and Create EO (Entity Object), VO (View Object) and AM (Application Module)
  3. Create Task Flow 
  4. Create Search Page with Search Criteria 
  5. Create Crud Functionality.

2) Create Database Connection & Create EO (Entity Object), VO (View Object) & AM (Application Module)
  •  Create Database Connection, right click on Connection, New Connection and then Database...
Datebase connection in ADF


  •  As you click on Database.. Popup will show on your screen. Enter all the following necessary requirements, and then Test your connection. If your connection is Success then click OK
    • Connection Name
    • Username/Password
    • Host Name, Port, SID
Datebase connection in ADF

  •  After Connection of Database, Right Click on Model, and Click New.. 
Data model in ADF


  •  Select ADF Business Components from Categories, then select Entity Object form Items
Adf Business Component



  • It will ask you again for the confirmation of database connection. If you don't create it before. You must have to create it right now other wise you can't go further. 

Specify Database Connection
  • Click on Browse.. button
Click on Browser



  • Type Object (Table) Name, select and OK
Type Table Name in Object Name



  • Here you need to change two thing.
    • Package : Create new Package with the name of model.EO
    • Name : This is your Table Name which ADF show you in InitCap, Type EO at the end of Name to remember this is an EO (Entity Object)
Create EO package and change name



  • These are the Entity Attributes, Click Next
Entity Attributes



  • Click Next
Attribute Setting



  • Oracle ADF has an ability to create automatically Create, DML, Remove Method.
java functionality



  • Now in Step 5, you will create VO (View Object) and AM (Application Module). Same Changes as we did in above (EO).
    • Package (View Object) : model.VO
    • Name (View Object) : Type VO at the end of Name
    • Package (Application Module) : model.AM
    • Then click Next.
Create VO and AM



  • Click on Finish button.
Finally Done EO , VO and AM



  • Now finally you will see in your ADF Screen AM, EO and VO has been created.

ADF AM EO and VO


Now the next point point no 3 is how much types of Taskflow and how to create it. Turn to Point No 3. If you have any query regarding this post you can ask / comment me below. 

No comments:

Thank you for your comment...!

Powered by Blogger.