Wednesday, February 22, 2017

Java ADF creating EO and VO

After creating a Data Base connection,

Click the 'Applications Window options' and change the Package level to '1'
Right click on Test Modal and create a new 'Entity Object'

Click 'OK'

Give a name to the entity object

Type Testmodel.eo for the package name. This creates a package named eo 
inside the package Testmodel. Then click 'Browse' following to Schema
Object

You can choose the data base you connected earlier from the Database schema
list Then  click Query and select the required table and double click then press
'OK'

Click 'Next'

Click 'Next'

Select the attribute for the primary key and tick the Primary key check box
and click 'Next'

Click ' Next'

Click 'Next'

Click 'Finish'



Right click on Test Modal and create a new 'View Object'

Give a name to the view object and type Testmodel.vo for the package
name. This creates a package named vo 
inside the package Testmodel.
Then click 'Next'

Double click 'TestEO' to select it

Click 'Next'

Double click the data base table fields to select them

Click 'Next'

Click 'Next'

Double click to select

Click 'Next'
Click 'Next'

Click 'Next'

Click 'Next'

Click 'Finish'
Creating EO and VO is complete

No comments:

Post a Comment