April 05
Prof. Ismael H. F. Santos -  ismael@tecgraf.puc-rio.br                                                          2
JPA ORM – Mapeamento de Relacionamentos List M - M
nMapeamento List many – to – many
n@Entity
n@Table(name = “PAPEIS")
npublic class Papel implements Serializable {
n@ManyToMany( mappedBy=“listaPapeis“ )
n@IndexColumn(name="indice")  // para manter a ordem de
nprivate List<Ator> atores;   // criação de List
n}