fix hibernate bug by replacing Set<> with Collection<>

closes #785