JDBC Driver for SAP Business One

Build 24.0.9060

Views

Modeling Navigation Properties

By default, the driver models Navigation Properties as separate views. The views are named in the format ParentTable_NavigationProperty. You can disable this behavior with NavigationPropertiesAsViews.

Querying Navigation Properties

For an example of working with a navigation property as a view, consider BusinessPartners. The BusinessPartners entity set has an Orders navigation property. The CData JDBC Driver for SAP Business One will display a view called BusinessPartners_Orders for this service. Retrieving data from BusinessPartners_Orders will display all of the Orders associated with a given BusinessPartner. The BusinessPartners_Orders view has a primary key made up of the primary key of the parent entity and the primary key of the related entity.

Support for navigation properties is currently limited in SAP Business One Service Layer. As of the time of this writing, it is only supported in ODataVersion 3.0. See NavigationPropertiesAsViews to toggle the behavior of this functionality.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060