Oracle type tperson contains a name and address properties.
Oracle type taddress contains a city property.
APerson := TOracleObject.Create(blah);
APerson.SetAttr('Name') := 'Eric'; AAddress := APerson.ObjAttr('Address');
AAddress.SetAttr('City') := 'Cleveland'; // Fails not finding City.
I think the problem is that the nested attribute is null (since it's a new object) but I don't know how to populate it. The taddress type doesn't have an associated table since it's a nested type, so I can't create a new object and assign it to the object attribute. How do I create a new nested object for a new parent object?
Oracle type taddress contains a city property.
APerson := TOracleObject.Create(blah);
APerson.SetAttr('Name') := 'Eric'; AAddress := APerson.ObjAttr('Address');
AAddress.SetAttr('City') := 'Cleveland'; // Fails not finding City.
I think the problem is that the nested attribute is null (since it's a new object) but I don't know how to populate it. The taddress type doesn't have an associated table since it's a nested type, so I can't create a new object and assign it to the object attribute. How do I create a new nested object for a new parent object?