Inheritance

Hi, this is the export aurelius generated by Data Modeler:
...
  [Entity]
  [Table('Entity')]
  [Inheritance(TInheritanceStrategy.JoinedTables)]
  [Sequence('Id_Entity')]
  [Id('FId', TIdGenerator.IdentityOrSequence)]
  TEntity = class
  private
    [Column('Id', [TColumnProp.Required])]
    FId: integer;
    [Column('Name', [TColumnProp.Required], 50)]
    FName: string;
  public
    property Id: integer read FId write FId;
    property Name: string read FName write FName;
  end;
 
  [Entity]
  [Table('Customer')]
  [PrimaryJoinColumn('Id')]
  TCustomer = class(TEntity2)
  private
    [Column('NIF', [TColumnProp.Required], 50)]
    FNIF: string;
  public
    property NIF: string read FNIF write FNIF;
  end;
 
  [Entity]
  [Table('Entity2')]
  [Inheritance(TInheritanceStrategy.JoinedTables)]
  [PrimaryJoinColumn('Id')]
  TEntity2 = class(TEntity)
  private
    [Column('Address', [TColumnProp.Required])]
    FAddress: integer;
  public
    property Address: integer read FAddress write FAddress;
  end;
 
  [Entity]
  [Table('Staff')]
  [PrimaryJoinColumn('Id')]
  TStaff = class(TEntity)
  end;
 ...
When compliling, error is raise "[dcc32 Error] DB.Schema.pas(46): E2086 Type 'TEntity2' is not yet completely defined".

if you move  TEntity2 definition, between TEntity and TCustomer definition, everything is OK (of course).

Hi, can you please send us your Data Modeler project so we can fix it here? You can send it to support@tmssoftware.com, thank you.

I already sent, did you received?

Yes, thanks. We have fixed the issue, Data Modeler 2.3.2 is now released with that fix.

Hi, Wagner
  Works perfect.
  Thanks Wagner, great job