Win a 3 month subscription to Marco Behler Videos this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Upgrading hibernate from 3.6 to 5.0.9  RSS feed

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

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.

Thanks

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!