using hibernate to fetch entries now, able to fetch entries in one go