Implemented getList query for Hibernate.