update hibernate 4 version. and use generic for components