-
Notifications
You must be signed in to change notification settings - Fork 0
/
Endereco.pas
35 lines (29 loc) · 894 Bytes
/
Endereco.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
unit Endereco;
interface
uses
Aurelius.Mapping.Attributes, Aurelius.Types.Proxy, System.Generics.Collections, Aluno;
type
[Entity, Automapping]
[Table('Enderecos')]
[Id('FId', TIdGenerator.IdentityOrSequence)]
TEndereco = class
private
FId: Integer;
FLogradouro : String;
FCidade : String;
FBairro : String;
FCep : String;
FEstado : String;
[Association([TAssociationProp.Lazy])]
[JoinColumn('AlunoID', [])]
FAluno : Proxy<TAluno>;
public
property ID : Integer read FId write FId;
property Logradouro : String read FLogradouro write FLogradouro;
property Cidade : String read FCidade write FCidade;
property Cep : String read FCep write FCep;
property Estado : String read FEstado write FEstado;
property Aluno : Proxy<TAluno> read FAluno write FAluno;
end;
implementation
end.