Example demonstrate how we can read object from DB using hibernate