Hi all,
I was just reading the spec and noticed that use of java.util.List is
permissible for collections. So far I've been using java.util.Collection
because I think that was all that was supported when I started out with
early pre-release versions of EJB 3.0 Persistence from Hibernate. I think
I'd prefer using Lists, but, I thought that I would ask if there are any
gotchas to look out for before I switch everything over. It looks like the
only caveat to watch out for is with regard to ordering. Does anyone have
any opinions as to which one is the better one to go with? One of the things
I like about Lists is that you can sort them using java.util.Collections.
Also, a lot of times I need to access the first element in a list which is
easier with Lists than with Collections.
Jon