Entity import/export screen : graph depth


I tested the import/export screen in sample Sales application, hoping to be able to export a complete json object graph in order to reimport it into another test database.

I saw that in exported json there was a particular choice made regarding the entity graph.

In the generated json below for an Order, the Customer which is a ‘to one’ relationship has been exported entirely, but not the order lines, which is a ‘to many’ relationship, and more particulary a composition.

Which means, if I’m not mistaken, that the CUBA view used for generation was not exactly LOCAL, because then only the Customer Id would have been exported. So it’s neither local, nor complete, but somewhere in between.

I was wondering what was the design choice behind that.

    "_entityName": "sales$Order",
    "id": "7bee9d67-47cb-3bdc-ee5d-19318caaf1e6",
    "date": "2017-12-01 00:00:00.000",
    "amount": 110.00,
    "createdBy": "admin",
    "createTs": "2017-12-01 10:35:16.633",
    "version": 1,
    "updateTs": "2017-12-01 10:35:16.633",
    "customer": {
      "_entityName": "sales$Customer",
      "id": "d178d436-92ed-7565-b715-e378973a218d",
      "name": "customer1",
      "version": 2