[hibernate-dev] Applying commits from 3.6 to master