ADF BC REST service - Type Mapping
JDev: 12.2.1.3.0 This article talks about a powerful, yet under-utilized, feature of ADF BC - the data type mapping. Oracle ADF provides this feature to generate a runtime mapping between a View Object's String attribute and a Web Service's (both SOAP and REST) Boolean attribute. The most popular use-case for this feature is to map a Boolean Active/Inactive flag from the service to a Yes/No value on the View Object. By default, ADF provides 3 mappings, which cover the following scenarios: 1. oracle.jbo.valuemaps. BooleanYNPropertySet - maps Y/N to true/false. 2. oracle.jbo.valuemaps. BooleanTFPropertySet - maps T/F to true/false. 3. oracle.jbo.valuemaps. Boolean10PropertySet - maps 1/0 to true/false. These property sets are in adfm.jar, which is part of the ADF Model Runtime library. The advantage of using a type mapping is a two-way binding - you may pass the String as well as the Boolean value in the payload, and the type ...