Skip to content
Archives des entrées postées le juillet 2010

SQL strangeness

I’ve been caught several times on the same bug recently : some method takes a collection as argument, and must execute a SQL (actually, a Hibernate query) to find all foos having their ID in the given collection:

public List<Foo> findByIds(Set<Long> ids) {
String [...]