Infosys interview question

Question on spring hibernate java database