Skip to content
Archives des articles taggés SQL

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 [...]