XX-11205: Upgrade hibernate from 3.2.7 to 3.6.10

-minor changes in the code to acomodate new api
-added needed new hibernate 3.6.10 jars
-fix classpaths