Friday, March 7, 2014

ADF: Manually change Data Type Map for a BC project

After I worked on a new ADF project for a while, I decided to change the Data Type Map of my data model project from the default Java Extended for Oracle to Java.

As described in the section "How to Initialize the Data Model Project With a Database Connection" of the documentation "Developing Fusion Web Applications with Oracle Application Development Framework" at:

http://docs.oracle.com/middleware/1212/adf/ADFFD/bcintro.htm#ADFFD133

Once you save project selections in the Initialize Business Components Project dialog, the project is considered initialized. You will not be able to change the data type map of the initialized project and it is not recommended to change the SQL platform after you have created business components.

So, I looked for the configuration entries for the data type map across the project, and ended up with two files, "bc4j.xcfg" and ".jpx" file of the model project.

I made a change as follow, in the ".jpx" file:

-  <Attr Name="_jbo.TypeMapEntries" Value="OracleApps"/>
+  <Attr Name="_jbo.TypeMapEntries" Value="Java"/>

and changes in "bc4j.xcfg", for all application module configurations:

-  <Database jbo.locking.mode="optimistic" jbo.TypeMapEntries="OracleApps"/>
+  <Database jbo.locking.mode="optimistic" jbo.TypeMapEntries="Java"/>

This seems to work fine in my case. It's a small and simple model project anyway.

No comments:

Post a Comment