April 05
Prof. Ismael H. F. Santos -  ismael@tecgraf.puc-rio.br                                                          2
JPA Annotations
nComo vimos, anotações em JPA seguem o pattern Decoratior e podem ser divididas em 2 tipos básicos:
nPhysical annotations - @Table
nLogical anotations - @ManyToOne, etc
nConfiguração por decoração permite:
nRefinar o modelo fisico do BD
n@Table, @SecondaryTable, @Column
nDefinir o mapeamento lógico objeto-relacional
n@Version, @Transient, @Embeddable
nDefinir a estratégia de geração dos identificadores
n@GeneratedValue
n@SequenceGenerator / @TableGenerator