"packagesToScan" feature for Hibernate 3 and Hibernate 4 detects annotated packages as well

Issue: SPR-7748
Issue: SPR-10288