I have a many to many relationship at my Java beans. When I use List to define my variables as like:
@Entity
@Table(name=\"ScD\")
public class G
I know the question was made years ago but I wanted to comment on this topic, just in case someone is doubtful about the set vs list issue.
Regarding lazy fetching, I think a bag (list without index) would be a better option due to the fact that you avoid retrieving all objects each time one is added to the collection to:
Please correct me if I'm mistaken.