HIbernate Configuration

I was running into some problems setting up the configuration of hibernate while doing a diff against an existing database. Specifically we wanted to locally override the dialect as well as specify the naming strategy. While we could monkey around with our hibernate config or properties to get the dialect we wanted in, there strangely is no way, other than programmatically, to specify the naming strategy to use. The solution I came up with was to allow the addition of properties onto the end of the hibernate url in a form similar to HTTP GET request parameters. The standard hibernate config is generated, then any url derived properties are applied on top of them. Since their is no available property for naming strategies, I made up the somewhat obvious hibernate.namingStrategy, and check for it specifically and handle it appropriately. 

I hope you find this useful,
Adrian George