Enhanced hibernate config

Removed unused config, which was commented out.

Also using the new hibernate 4 id generator mappings, which is recommended according to the hibernate 4 doc: http://docs.jboss.org/hibernate/core/4.3/manual/en-US/html_single/#mapping-declaration-id-generator

Please review and feel free to merge!