• Post Reply Bookmark Topic Watch Topic
  • New Topic

Upgrading hibernate from 3.6 to 5.0.9  RSS feed

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.


It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!