@OneToMany List<> vs Set<> difference

Viewed 56969

Is there any difference if I use

@OneToMany
public Set<Rating> ratings;

or if I use

@OneToMany
public List<Rating> ratings;

both work OK, i know difference between list and a set, however I don't know if this makes any difference how hibernate (or rather JPA 2.0) handles it.

2 Answers
Related