Merged Entities

Is there a way to have 2 entities merged to make a single entity and automatically create and load from the same table? I'm thinking of something like


[AbstractEntity]
TLocation = class;

[AbstractEntity]
TPerson = class;

[Entity]
[Id('FId', TIdGenerator.IdentityOrSequence)]
TPersonLocation = class
private
FId: Integer;
 FLocation: TLocation;
TPerson: TPerson;
public
property Id: Integer read FId write FId;
property Location: TLocation read FLocation write FLocation;
property Person: TPerson read FPerson write FPerson;
end;

I understand you want to save properties from Location and Person objects to be saved directly in the PERSON_LOCATION table, instead of being saved in two different tables?

In this case, this is unfortunately not possible.

As I thought, but thought I'd ask anyway.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.