Hibernate 3 to 5 upgrade - postProcessConfiguration method in AnnotationSessionFactoryBean deprecated

Try via the MetadataBuilder.applyImplicitSchemaName. Check out this article for an example of how to customize the MetadataBuidler via the MetadataBuilderContributor.

Another way to customize the PersistenceClass is via a custom Tuplizer. Check out the User Guide for an example.