• Post Reply Bookmark Topic Watch Topic
  • New Topic

Upgrading hibernate from 3.6 to 5.0.9

Alps Chauhan
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am trying to upgrade my code from hibernate 3.6 to 5.0.9. I am setting default sequence generator properties as below -

Mappings mappings =  config.createMappings();

//Setting other properties like catalog,schema etc

prop.put(TableGenerator.IDENTIFIER_NORMALIZER, mappings.getObjectNameNormalizer());

In hibernate 5 createMappings(); method is not available for Configuration. Can anyone please suggest how to get ObjectNameNormalizer  in hibernate 5. so that I can re write above line.

I see getObjectNameNormalizer() is available in MetaDataBuildingContext but could not figure out how to retrieve MetaDataBuildingContext from the Configuration.


Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!