Databases Reference
In-Depth Information
Highlight
BidView1
. This will populate the
Basic Operations
tab, which lists all the
operations that we can enable for the selected view. Select all of them.
Repeat this step for the
ListingView1
instance. Then click
Finish
. JDeveloper will
now generate the required metadata and code to service-enable the
Application module.
Enabling master detail updates
By default, if we have a master detail relationship between Entity objects, as is the
case between the
Listing
and
Bid
entities, then any service operations that we enable
for the master view SDO will not process any information contained in the detail
view SDO(s).
The WSDL interface for any operation, which modifies the entity
contained in the master view, still allows us to pass the corresponding
detail views. It's just that the operation will quietly ignore them.
For example, if we call the
updateListingView
operation passing
in details of the updated
ListingViewSDO
, which, in turn, contains
multiple
BidViewSDO
s containing details of updated or new bids,
then the operation will just ignore the
BidViewSDO
s and update the
Listing
row in the database.