When to use java.util.Collection or java.util.Set

2002-04-16 Thread Randahl Fink Isaksen
Hi everybody I noticed in the EJB 2.0 specification that most of the examples use java.util.Collection when defining a relationship between two entities, even though java.util.Set is also allowed. Why is that so? I would expect java.util.Set to be the most frequently used type,

RE: When to use java.util.Collection or java.util.Set

2002-04-16 Thread Greg Davis
hope that you datasource would not have duplicate records in it anyway. :-) -Original Message-From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]]Sent: Tuesday, April 16, 2002 9:12 AMTo: Orion-InterestSubject: When to use java.util.Collection or java.util.Set Hi