OData $expand function using aliases in Data Virtualization

Solution Verified - Updated -

Issue

  • Can the table_column names used in an $expand be shortened, i.e. an alias without changing the DV models underneath?
  • For example the call based on the virtual table and column for each JSON array $expand=v_salescard_vfk_card,v_salesasset_vfk_asset can the returned columns be named asset and card instead of v_salescard_vfk_card and v_salesasset_vfk_asset?

Environment

  • Red Hat JBoss Data Virtualization (DV) 6.4
  • Odata query using $expand:
http://localhost:8080/odata4/vdb/vbl/v_salescust?$format=JSON & $filter= ID eq '12345678' & $expand=v_salescard_vfk_card,v_salesasset_vfk_asset

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content