This content has been marked as final.
Show 2 replies
-
1. Re: List index when mapping a List
rwallace Nov 10, 2005 2:02 PM (in response to rwallace)Sorry, forgot to add the annotations. It should be:
@Entity public class Book { protected List<Contact> m_authors = new ArrayList<Contact> (); @ManyToMany(fetch = FetchType.LAZY) @JoinTable(table = @Table(name = "revman_book_authors"), joinColumns = {@JoinColumn(name = "bookId")}, inverseJoinColumns = {@JoinColumn(name = "authorId")}) public List<Contact> getAuthors () { return m_authors; } public void setAuthors (List<Contact> authors) { m_authors = authors; } }
-
2. Re: List index when mapping a List
epbernard Nov 17, 2005 7:04 AM (in response to rwallace)@IndexColumn