DataArt interview question

How we can fetch objects in Hibernate