public List<T> getByIds(Long[] ids) { return getSession().createQuery(// "FROM User WHERE id IN (:ids)")// .setParameterList("ids", ids)// .list(); }