last set of hibernate with caching(query as well)