Hi i have a simple question.
I have a next siplme mapping fragment
Code:
<set name="contactdoctorSet" inverse="false">
<key column="doctor_id"/>
<one-to-many class="Contactdoctor"/>
</set>
I'm using in my domain objects Set as collection object for contactdoctorSet as follows :
Code:
public abstract class AbstractDoctor
implements Serializable
{
/** The value of the contactdoctorSet one-to-many association. */
private java.util.Set contactdoctorSet;
}
My question is : is possible to use List interface ?
Code:
private java.util.List contactdoctorSet;
is any difference for hibernate to use List or Set ? Or better is possible to use List instead of Set ? If no why ?
Thanks for help