Hi!
I'm using XData with a legacy database where almost all tables have compound primary keys, so most of them are not modeled with unique id fields, and some associations do not encapsule/hide all foreign-key fields.
Is there a way to force some references to show as canonical id references i/o proxy references?
It generates:
"Cuenta@xdata.proxy": "Operacion(1%2C1%2C1%2C0%2C1000157%2C130%2C201%2C44317%2C0)/Cuenta",
"Sucursal@xdata.proxy": "Operacion(1%2C1%2C1%2C0%2C1000157%2C130%2C201%2C44317%2C0)/Sucursal",
"Estado@xdata.proxy": "Operacion(1%2C1%2C1%2C0%2C1000157%2C130%2C201%2C44317%2C0)/Estado",
"Moneda@xdata.proxy": "Operacion(1%2C1%2C1%2C0%2C1000157%2C130%2C201%2C44317%2C0)/Moneda",
none of them are manyvalued associations, and I believe it could simply be:
"Cuenta@xdata.ref": "Cuenta(1%2C1000157)",
"Sucursal@xdata.ref": "Sucursal(1%2C1)",
"Estado@xdata.ref": "Estado(0)",
"Moneda@xdata.ref": "Moneda(1),
It seems like it's generating canonical id references only when the associated entity field is part of the child table ID, as for this table:
"TipoDocumento@xdata.ref": "TipoDocumento(1)",
"Pais@xdata.ref": "Pais(586)",
"PersonaFisica@xdata.proxy": "Persona(586%2C1%2C'663551')/PersonaFisica",
None of them are manyvalued associations, the only difference is that TipoDocumento
& Pais
are part of Persona
IDs list.