Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Inheritance 2

 Post Reply Post Reply
Author
Araujo Carla View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 May 2014
Posts: 232
Post Options Post Options   Quote Araujo Carla Quote  Post ReplyReply Direct Link To This Post Topic: Inheritance 2
    Posted: 16 Jul 2014 at 5:26am
Has i said before,  "[Inheritance(TInheritanceStrategy.JoinedTables)]" on TEntity2 definition shouldn't be there

  [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;
 
Please solve this, it's very annoying every time i export to aurelius, correct this manually on a big data base shema, thanks, for your great support
Back to Top
Araujo Carla View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 May 2014
Posts: 232
Post Options Post Options   Quote Araujo Carla Quote  Post ReplyReply Direct Link To This Post Posted: 22 Jul 2014 at 5:30am
Hi, solved on 2.3.2.
  Thanks, great job
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down