retrive data using hibernate