Use hibernate instead for spring to connect database and mapping object