Cognizant interview question

Spring framework flow, where do u give dB values in hibernate, basic java oop