add hibernate and spring dependencies