ported hibernate3 changes to hibernate4 module
could not enable @CompileStatic in HibernateGormStaticApi because of CS bugs
Merge pull request #119 from lhotari/master

hibernate3 module changes synchronized to hibernate4 module