ivoa / vo-dml

VO-DML tooling and documents.
Creative Commons Attribution Share Alike 4.0 International
1 stars 1 forks source link

Consider when to emit database IDs in serialisations #30

Open pahjbo opened 7 months ago

pahjbo commented 7 months ago

In general if an entity is a composition then in a full export of a model, then no database ID is required as the object can only appear as a "child" of the parent - however, in the case of serialising in a API then it is more likely that an efficient API design can only be achieved if the database ID is emitted.

It would be good to be able to make the serialisation "switchable" between these two scenarios.